fix(ui): contain archived chats and analytics content within the settings modal (#27306)

This commit is contained in:
G30
2026-07-23 14:34:35 -04:00
committed by GitHub
parent 132a29fd1c
commit e62e4eb9fe
3 changed files with 5 additions and 4 deletions
@@ -47,7 +47,7 @@
<div class="relative w-full" style="height:{height}px">
<svg
viewBox="0 0 {w} {height - 20}"
class="h-[calc(100%-20px)] w-full"
class="absolute inset-x-0 top-0 h-[calc(100%-20px)] w-full"
preserveAspectRatio="none"
onmousemove={onMove}
onmouseleave={() => (hoveredIdx = null)}
@@ -88,7 +88,7 @@
: period === 'year' || period === 'all'
? 'M/D/YY'
: 'M/D'}
<div class="flex justify-between px-0.5 text-[10px] text-gray-400">
<div class="absolute inset-x-0 bottom-0 flex justify-between px-0.5 text-[10px] text-gray-400">
{#each Array(labelCount) as _, i}
{@const idx = i === labelCount - 1 ? data.length - 1 : Math.min(i * step, data.length - 1)}
{#if data[idx]}
@@ -310,8 +310,9 @@
{#each chatList as chat (chat.id)}
<div class="flex w-full justify-between gap-2 px-1 py-1 text-xs">
<a
class="min-w-0 flex-1 self-center truncate text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white"
class="mr-auto min-w-0 max-w-xl flex-1 self-center truncate text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white"
href={`/c/${chat.id}`}
title={chat?.title}
on:click={(event) => {
event.preventDefault();
showSettings.set(false);
+1 -1
View File
@@ -1151,7 +1151,7 @@
</div>
</nav>
<div class="flex-1 min-h-0 p-4 md:px-5 flex flex-col">
<div class="flex-1 min-w-0 min-h-0 p-4 md:px-5 flex flex-col">
<div class="flex-1 min-h-0 overflow-hidden">
{#if selectedTab === 'general'}
<General