Compare commits

...

5 commits

Author SHA1 Message Date
G30
ce12e19203
Merge f787f2c8a3 into ae47101dc6 2025-12-10 17:18:53 +01:00
Timothy Jaeryang Baek
ae47101dc6 refac 2025-12-10 11:07:41 -05:00
silentoplayz
f787f2c8a3 Update ArchivedChatsModal.svelte 2025-12-09 00:00:32 -05:00
silentoplayz
bfe0280eb2 Update SearchModal.svelte 2025-12-08 23:57:08 -05:00
silentoplayz
c5f9b89bc0 fix: resolve layout shift in knowledge items with long names
Add flex-1, min-w-0 to title and shrink-0 to author metadata to prevent misalignment.
2025-12-08 23:49:04 -05:00
4 changed files with 5 additions and 5 deletions

View file

@ -339,7 +339,7 @@
</tr>
</thead>
<tbody class="">
{#each users as user, userIdx}
{#each users as user, userIdx (user.id)}
<tr class="bg-white dark:bg-gray-900 dark:border-gray-850 text-xs">
<td class="px-3 py-1 min-w-[7rem] w-28">
<button

View file

@ -36,7 +36,7 @@
let filter = {};
$: filter = {
...(query ? { query } : {}),
...(query ? { query: query.slice(0, 500) } : {}),
...(orderBy ? { order_by: orderBy } : {}),
...(direction ? { direction } : {})
};

View file

@ -125,7 +125,7 @@
chatList = await getChatList(localStorage.token, page);
} else {
searchDebounceTimeout = setTimeout(async () => {
chatList = await getChatListBySearchText(localStorage.token, query, page);
chatList = await getChatListBySearchText(localStorage.token, query.slice(0, 500), page);
if ((chatList ?? []).length === 0) {
allChatsLoaded = true;

View file

@ -242,11 +242,11 @@
</div>
<div class=" flex items-center gap-1 justify-between px-1.5">
<div class=" flex items-center gap-2">
<div class=" flex-1 min-w-0 flex items-center gap-2">
<div class=" text-sm font-medium line-clamp-1 capitalize">{item.name}</div>
</div>
<div>
<div class="shrink-0">
<div class="text-xs text-gray-500">
<Tooltip
content={item?.user?.email ?? $i18n.t('Deleted User')}