Skip to content

Commit

Permalink
hide collection title if description is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
SuaYoo authored and emma-sg committed Dec 23, 2024
1 parent 1a03657 commit d987bde
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ class Pages extends LitElement {
}
.index-bar-description {
margin-bottom: var(--sl-spacing-x-small);
flex: 1 1 auto;
overflow: auto;
line-height: var(--sl-line-height-normal);
Expand Down Expand Up @@ -648,7 +649,13 @@ class Pages extends LitElement {
/>
</form>
`
: html` <div class="index-bar-label">Collection Title</div>
: html` <div
class="index-bar-label ${this.collInfo!.description
? ""
: "is-sr-only"}"
>
Collection Title
</div>
<div
class="index-bar-title"
@dblclick="${() => (this.editing = true)}"
Expand Down

0 comments on commit d987bde

Please sign in to comment.