Skip to content
Open
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
32 changes: 19 additions & 13 deletions core/src/components/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ export default defineComponent({
box-shadow: inset 0 0 0 2px var(--color-background-plain-text) !important;
}

// Inner text slot needs min-width: 0 so the label can ellipsize.
// Lets the inner label shrink to its max-width and ellipsize instead of
// pushing the button wider than the inline-flex text slot.
:deep(.button-vue__text) {
min-width: 0;
}
Expand All @@ -451,18 +452,23 @@ export default defineComponent({
}

&__current-app-name {
// inline-block: inline elements ignore max-width + overflow.
display: inline-block;
vertical-align: middle;
font-size: var(--default-font-size);
font-weight: 500;
white-space: nowrap;
letter-spacing: -0.5px;
overflow: hidden;
text-overflow: ellipsis;
// Cap width so long titles ellipsize instead of pushing the header
// icons off-screen (.header-start doesn't shrink).
max-width: clamp(80px, 22vw, 320px);
// Hidden by default so the icon-only trigger fits alongside the
// centered search input. The button's aria-label still announces the
// section name. At wide viewports we restore the label with a
// truncation cap as a safety net for long localized names.
display: none;

@media only screen and (min-width: 1400px) {
display: inline-block;
vertical-align: middle;
font-size: var(--default-font-size);
font-weight: 500;
white-space: nowrap;
letter-spacing: -0.5px;
overflow: hidden;
text-overflow: ellipsis;
max-width: clamp(160px, 18vw, 360px);
}
}

&__popover {
Expand Down
4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

Loading