Skip to content

Commit 8816699

Browse files
authored
fix: menu text-overflow (#989)
1 parent eeb88bf commit 8816699

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/assets/styles/main.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,6 @@ $icon-font-path: '../icon-font' !default;
362362
}
363363

364364
.vjs-menu {
365-
.vjs-menu-content {
366-
min-width: 10em;
367-
width: auto;
368-
padding: 0.2em 0;
369-
}
370365
.vjs-selected {
371366
background: none;
372367
color: var(--color-text);
@@ -379,6 +374,11 @@ $icon-font-path: '../icon-font' !default;
379374
font-size: 0.9em;
380375
padding: 0 1em;
381376
line-height: 2em;
377+
.vjs-menu-item-text {
378+
overflow: hidden;
379+
text-overflow: ellipsis;
380+
min-width: 0;
381+
}
382382
}
383383
&:has(.vjs-selected) {
384384
.vjs-menu-item {

0 commit comments

Comments
 (0)