fix(editor): link popover title overflow (#11704)

fix AF-2506
This commit is contained in:
pengx17
2025-04-16 04:40:59 +00:00
parent bfec5dd594
commit 79c9425df6
2 changed files with 8 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ export class LinkedDocPopover extends SignalWatcher(
return html` return html`
<div class="divider" ?hidden=${idx === 0}></div> <div class="divider" ?hidden=${idx === 0}></div>
<div class="group-title"> <div class="group-title">
${group.name} <div class="group-title-text">${group.name}</div>
${group.isLoading ${group.isLoading
? html`<span class="loading-icon">${LoadingIcon}</span>` ? html`<span class="loading-icon">${LoadingIcon}</span>`
: nothing} : nothing}

View File

@@ -52,6 +52,13 @@ export const linkedDocPopoverStyles = css`
flex-shrink: 0; flex-shrink: 0;
font-weight: 500; font-weight: 500;
justify-content: space-between; justify-content: space-between;
max-width: 240px;
}
.linked-doc-popover .group-title .group-title-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.linked-doc-popover .group-title .loading-icon { .linked-doc-popover .group-title .loading-icon {