Skip to content

Commit

Permalink
fix: show full width when showTags setting is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
decaf-dev committed Sep 14, 2024
1 parent e273851 commit c6b6d98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/svelte/app/components/list-item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
});
}
$: tagsClassName = `vault-explorer-list-item__tags ${isSmallScreenSize ? "vault-explorer-list-item__tags--screen-size-sm" : ""}`;
$: titleClassName = `vault-explorer-list-item__title ${isSmallScreenSize ? "vault-explorer-list-item__title--screen-size-sm" : ""}`;
$: tagsClassName = `vault-explorer-list-item__tags ${isSmallScreenSize ? "vault-explorer-list-item__tags--full" : ""}`;
$: titleClassName = `vault-explorer-list-item__title ${isSmallScreenSize || !showTags ? "vault-explorer-list-item__title--full" : ""}`;
</script>

<div
Expand Down Expand Up @@ -187,7 +187,7 @@
box-shadow: 0 0 0 3px var(--background-modifier-border-focus);
}
.vault-explorer-list-item__title--screen-size-sm {
.vault-explorer-list-item__title--full {
width: 100%;
}
Expand All @@ -202,7 +202,7 @@
width: 50%;
}
.vault-explorer-list-item__tags--screen-size-sm {
.vault-explorer-list-item__tags--full {
width: 100%;
}
</style>

0 comments on commit c6b6d98

Please sign in to comment.