Skip to content

Commit

Permalink
Improve empty style
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Feb 23, 2024
1 parent b8b5d9f commit dc2a7e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions app/assets/javascripts/components/labels_search_bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ export class LabelTokens extends DodonaElement {
}

return html`

Check warning on line 34 in app/assets/javascripts/components/labels_search_bar.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/components/labels_search_bar.ts#L34

Added line #L34 was not covered by tests
${ this.labels.map( label => html`
<span class="labels">
${ this.labels.length > 0 ? html`
<div class="labels">
${ this.labels.map( label => html`

Check warning on line 37 in app/assets/javascripts/components/labels_search_bar.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/components/labels_search_bar.ts#L37

Added line #L37 was not covered by tests
<span class="token accent-orange">${label}
<a href="#" class="close" tabindex="-1" @click=${() => this.removeLabel(label)}>×</a>

Check warning on line 39 in app/assets/javascripts/components/labels_search_bar.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/components/labels_search_bar.ts#L39

Added line #L39 was not covered by tests
</span>
</span>
`)}
`)}
</div>
` : html`` }

Check warning on line 43 in app/assets/javascripts/components/labels_search_bar.ts

View check run for this annotation

Codecov / codecov/patch

app/assets/javascripts/components/labels_search_bar.ts#L43

Added line #L43 was not covered by tests
<input type="hidden" name="${this.name}" .value="${this.labels.join(",")}">
`;
}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/components/courselabel-edit.css.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
d-labels-search-bar {
.labels-searchbar-group {
padding-top: 10px;
.labels {
margin-bottom: 10px;
}

d-datalist-input {
Expand Down

0 comments on commit dc2a7e4

Please sign in to comment.