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

This commit is contained in:
G30 authored and GitHub committed 2026-07-23 13:34:35 -05:00
1 parent 132a29fd1c
commit e62e4eb9fe
3 files changed
+5 -4

No files matched your search

@@ -47,7 +47,7 @@
<div class="relative w-full" style="height:{height}px"> <div class="relative w-full" style="height:{height}px">
<svg <svg
viewBox="0 0 {w} {height - 20}" 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" preserveAspectRatio="none"
onmousemove={onMove} onmousemove={onMove}
onmouseleave={() => (hoveredIdx = null)} onmouseleave={() => (hoveredIdx = null)}
@@ -88,7 +88,7 @@
: period === 'year' || period === 'all' : period === 'year' || period === 'all'
? 'M/D/YY' ? 'M/D/YY'
: 'M/D'} : '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} {#each Array(labelCount) as _, i}
{@const idx = i === labelCount - 1 ? data.length - 1 : Math.min(i * step, data.length - 1)} {@const idx = i === labelCount - 1 ? data.length - 1 : Math.min(i * step, data.length - 1)}
{#if data[idx]} {#if data[idx]}
@@ -310,8 +310,9 @@
{#each chatList as chat (chat.id)} {#each chatList as chat (chat.id)}
<div class="flex w-full justify-between gap-2 px-1 py-1 text-xs"> <div class="flex w-full justify-between gap-2 px-1 py-1 text-xs">
<a <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}`} href={`/c/${chat.id}`}
title={chat?.title}
on:click={(event) => { on:click={(event) => {
event.preventDefault(); event.preventDefault();
showSettings.set(false); showSettings.set(false);
+1 -1
View File
@@ -1151,7 +1151,7 @@
</div> </div>
</nav> </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"> <div class="flex-1 min-h-0 overflow-hidden">
{#if selectedTab === 'general'} {#if selectedTab === 'general'}
<General <General