Skip to content

Commit

Permalink
color group: improve visuals of the component (#5185)
Browse files Browse the repository at this point in the history
This change improves visual aspect of the color group. Specifically, it
improves the dialog under very narrow screen.
  • Loading branch information
stephanwlee committed Aug 4, 2021
1 parent 91f7e34 commit f722424
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h4>Color group preview</h4>
class="color-swatch"
[ngStyle]="{backgroundColor: colorRunsPair.color}"
></span
><code name="group-id" [title]="colorRunsPair.groupId"
><code class="group-id" [title]="colorRunsPair.groupId"
>{{colorRunsPair.groupId}}</code
></label
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ ul {
padding: 0;
}

mat-form-field {
width: 100%;
}

.group {
@include tb-theme-foreground-prop(border, border, 1px solid);
border-radius: 3px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ const INPUT_CHANGE_DEBOUNCE_INTERVAL_MS = 500;
(onSave)="onSave($event)"
(regexInputOnChange)="onRegexInputOnChange($event)"
></regex-edit-dialog-component>`,
styles: [
`
:host,
regex-edit-dialog-component {
display: block;
height: 100%;
width: 100%;
}
`,
],
})
export class RegexEditDialogContainer {
private readonly experimentIds: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ export class RunsGroupMenuButtonComponent {
// data pass in the experiment id
const dialogRef = this.dialog.open(RegexEditDialogContainer, {
maxHeight: '95vh',
minHeight: '500px',
maxWidth: '80vw',
minWidth: '600px',
data: {experimentIds: this.experimentIds},
});
}
Expand Down

0 comments on commit f722424

Please sign in to comment.