Skip to content

Commit

Permalink
Make long text in select option break lines to see full content.
Browse files Browse the repository at this point in the history
For unknown reasons, the long text is still truncated with ellipses, which is not consistent with the angular document which says the MDC select should have "Long options now wrap by default instead of truncating". Fix by override the mat-option style.

PiperOrigin-RevId: 567391990
  • Loading branch information
zzzaries authored and copybara-github committed Sep 21, 2023
1 parent 709450e commit 73b514f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/app/styles/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ mat-form-field {
margin-top: 16px;
}

mat-option {
// Break word for long text to see full content
overflow-wrap: break-word;
}

@mixin overview-card {
box-shadow: none !important;
margin: 8px;
Expand Down

0 comments on commit 73b514f

Please sign in to comment.