This commit is contained in:
Timothy Jaeryang Baek 2026-11-02 01:56:57 +09:00
parent 03401a6e33
commit 00ce7003ad
3 changed files with 15 additions and 8 deletions

View file

@ -156,10 +156,10 @@
<nav
class="sticky top-0 z-30 w-full {$mobile
? 'pt-1.5'
: 'pt-0.5'} pb-1 -mb-12 flex flex-col items-center drag-region"
? 'pt-0.5'
: ''} pb-1 -mb-12 flex flex-col items-center drag-region"
>
<div class="flex items-center w-full {$mobile ? 'px-2.5' : 'pl-1.5 pr-1'}">
<div class="flex items-center w-full {$mobile ? 'px-1.5' : 'pl-1.5 pr-1'}">
<div
id="navbar-bg-gradient-to-b"
class="{chat?.id

View file

@ -696,7 +696,12 @@
};
const onKeyDown = (e) => {
if (e.key === 'Escape' && !inboxOpened && $selectedChatIds.size > 0 && !showDeleteSelectedConfirm) {
if (
e.key === 'Escape' &&
!inboxOpened &&
$selectedChatIds.size > 0 &&
!showDeleteSelectedConfirm
) {
e.preventDefault();
chatSelection.clear();
}
@ -727,7 +732,7 @@
const MIN_WIDTH = 220;
const MAX_WIDTH = 480;
let viewportWidth = 320;
$: mobileWidth = Math.min(MAX_WIDTH, Math.max(0, viewportWidth - 40));
$: mobileWidth = Math.min(380, Math.max(0, viewportWidth - 40));
let isResizing = false;
let activePointerId: number | null = null;
@ -1299,7 +1304,7 @@
class=" my-auto flex flex-col justify-between h-screen max-h-[100dvh] w-[var(--sidebar-width)] overflow-x-hidden scrollbar-hidden z-50 border-e border-gray-50 dark:border-gray-850/30"
>
<div
class="sidebar px-1 pt-1.5 pb-1 flex justify-between space-x-1 text-gray-600 dark:text-gray-400 sticky top-0 z-10 -mb-2"
class="sidebar px-0.75 pt-1 pb-1 flex justify-between space-x-1 text-gray-600 dark:text-gray-400 sticky top-0 z-10 -mb-2"
>
<a
class="flex items-center rounded-xl size-8.5 h-full justify-center hover:bg-gray-100 dark:hover:bg-gray-900 transition no-drag-region"
@ -1331,7 +1336,9 @@
</div>
</a>
<div class="flex shrink-0 items-center gap-px">
{#if $config?.features?.enable_notifications}<InboxButton onClose={() => inboxHost.close()} />{/if}
{#if $config?.features?.enable_notifications}<InboxButton
onClose={() => inboxHost.close()}
/>{/if}
<Tooltip
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
placement="bottom"

View file

@ -122,7 +122,7 @@
: 'md:max-w-[calc(100%-42px)]'} max-w-full"
>
<div class="flex h-full min-w-0 flex-1 flex-col">
<nav class="px-2.5 pt-1 backdrop-blur-xl drag-region select-none">
<nav class="px-1.5 pt-1.5 backdrop-blur-xl drag-region select-none">
<div class="flex items-center gap-0.5 md:gap-1">
{#if $mobile}
<div class="{$showSidebar ? 'md:hidden' : ''} self-center flex flex-none items-center">