Skip to content

Commit

Permalink
more appearance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vid committed Nov 3, 2023
1 parent a4c1005 commit 7475a15
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion modules/out-review/dashboard/web/src/reviews/assets/reviews.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { css } from "lit";

export const controls = css`ul {
export const controls = css`
ul {
list-style: none;
}
.artifact::before,
Expand All @@ -21,6 +22,16 @@ export const controls = css`ul {
border-radius: 4px;
}
.styled-select {
border-radius: 4px;
border: 1px solid #ccc;
padding: 5px 10px; /* Padding inside the select box */
font-size: 16px; /* Font size */
appearance: none; /* Removes default browser style */
-webkit-appearance: none; /* For Safari */
-moz-appearance: none; /* For Firefox */
}
.ok-false::before {
content: '✕ ';
color: red;
Expand Down
4 changes: 2 additions & 2 deletions modules/out-review/dashboard/web/src/reviews/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class AReview extends LitElement {
return html`<h1>No data</h1>`;
}
const chooseView = html`
<select @change=${(e: Event) => this.view = <TView>(<HTMLSelectElement>e.target).value}>
<select class="styled-select" @change=${(e: Event) => this.view = <TView>(<HTMLSelectElement>e.target).value}>
${views.map(option => html`
<option ?selected=${this.view === option} value=${option}>
${option.charAt(0).toUpperCase() + option.slice(1)}
Expand All @@ -92,6 +92,7 @@ export class AReview extends LitElement {
`;

return this.reviewLD && html`
<div style="margin-bottom: 4px; padding-left: 20px">View ${chooseView} <label for="show-all-messages"></label></div>
${viewStyle}
<div style="margin-left: 40px">
<h2 class="ok-${this.reviewLD.meta.ok}">${this.reviewLD.meta.feature}</h2>
Expand All @@ -102,7 +103,6 @@ export class AReview extends LitElement {
})}
</div>
<div class="detail-container">
View ${chooseView} <label for="show-all-messages"></label>
${this.detail}
</div>
</div>
Expand Down

0 comments on commit 7475a15

Please sign in to comment.