Skip to content

Commit

Permalink
feat(cxl-ui): cxl-jw-player update result count styles
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet committed Oct 1, 2024
1 parent a4ae583 commit 036bd53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/cxl-ui/scss/cxl-jw-player/cxl-jw-player-shadow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}

.gap {
gap: var(--lumo-space-m);
gap: var(--lumo-space-s);
}

.grid {
Expand Down Expand Up @@ -112,6 +112,10 @@
max-width: var(--cxl-content-max-width);
width: 100%;

#search-result-count {
font-size: var(--lumo-font-size-s);
}

vaadin-checkbox {
--lumo-body-text-color: #fff;

Expand Down
14 changes: 7 additions & 7 deletions packages/cxl-ui/src/components/cxl-jw-player/index.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const template = function () {
<slot></slot>
${this.captions
? html`
<div class="center search padding">
<div class="center gap padding search">
<vaadin-text-field
@input=${this._debouncedSearch}
clear-button-visible
Expand All @@ -21,11 +21,9 @@ export const template = function () {
>
<vaadin-icon slot="prefix" icon="lumo:search"></vaadin-icon>
</vaadin-text-field>
<div id="searchResultCount">
${this._isSearchMinimumLength
? html`<span>(${this._matches} matches)</span>`
: nothing}
</div>
${this._isSearchMinimumLength
? html`<div id="search-result-count">(${this._matches} matches)</div>`
: nothing}
<vaadin-checkbox
@change=${this._toggleShouldScroll}
?checked=${this._shouldScroll}
Expand Down Expand Up @@ -55,6 +53,8 @@ export const template = function () {
</div>
`
: nothing}
${this.error ? html`<div class="center error">There was an error loading the video.</div>` : nothing}
${this.error
? html`<div class="center error">There was an error loading the video.</div>`
: nothing}
`;
};

0 comments on commit 036bd53

Please sign in to comment.