Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions tensorboard/webapp/widgets/dropdown/dropdown_component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ mat-select {
border-radius: 3px;
box-sizing: border-box;
padding: 6px;

// Default is 16px.
font-size: 12px;
// Default is 24px.
line-height: normal;

::ng-deep .mat-mdc-select-arrow-wrapper {
// Default is 24px.
height: 12px;
}
}

mat-select:focus {
Expand All @@ -29,21 +39,15 @@ mat-select:focus {
outline-style: auto;
}

::ng-deep .mat-select-panel {
::ng-deep .mat-mdc-select-panel {
max-width: 70vw;
}

// This selector needs relatively more specificity than Angular Material's
// to override the fixed height.
::ng-deep mat-option.mat-option {
height: auto;
}

::ng-deep .mat-option-text {
white-space: normal;
word-break: break-all;
}

.option-content {
white-space: nowrap;
::ng-deep mat-option.mat-mdc-option {
// Default is 48px.
min-height: 32px;
// Default is 16px.
font-size: 12px;
}
1 change: 1 addition & 0 deletions tensorboard/webapp/widgets/dropdown/dropdown_component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface DropdownOption {
template: `
<mat-select
[value]="value"
[hideSingleSelectionIndicator]="true"
(selectionChange)="selectionChange.emit($event.value)"
>
<mat-option
Expand Down