fix(ui): improve file mention autocomplete display for long filenames (#519)

- Increased max-width of the autocomplete container from 520px to 640px.
- Updated truncatePathMiddle maxLength from 45 to 60 for better visibility.
- Added a fade-out mask to the marquee container to prevent abrupt clipping.
This commit is contained in:
Raph
2026-02-26 11:21:32 +02:00
committed by GitHub
parent f372294800
commit 2fc849bfa5
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -300,6 +300,8 @@ textarea[data-chat-input="true"]:focus-visible {
.file-mention-marquee-container {
--file-mention-marquee-width: 360px;
--file-mention-marquee-duration: 4s;
mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
-webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}
.file-mention-marquee {