mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-04 18:47:56 -05:00
refac
This commit is contained in:
1 parent
d0c7dec838
commit
cadb7e655c
7 files changed
+10
-10
No files matched your search
@@ -77,7 +77,7 @@
|
||||
<div class="flex h-full min-h-0 flex-col">
|
||||
<div class="shrink-0 px-1.5 pb-1 md:px-2.5">
|
||||
<div class="flex items-center gap-0.5 md:gap-1">
|
||||
{#if $mobile}
|
||||
{#if $mobile && !pageTab}
|
||||
<div class="{$showSidebar ? 'md:hidden' : ''} flex flex-none items-center">
|
||||
<Tooltip content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}>
|
||||
<button
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
<!-- Top Navbar — spans above sidebar and calendar -->
|
||||
<nav class="px-1.5 pb-2 md:px-3 drag-region select-none shrink-0">
|
||||
<div class="flex items-center gap-0.5 md:gap-1">
|
||||
{#if $mobile}
|
||||
{#if $mobile && !pageTab}
|
||||
<div class="{$showSidebar ? 'md:hidden' : ''} flex flex-none items-center self-start">
|
||||
<Tooltip
|
||||
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
>
|
||||
<nav class="px-1.5 md:px-2.5 w-full drag-region">
|
||||
<div class=" flex items-center">
|
||||
{#if $mobile}
|
||||
{#if $mobile && !pageTab}
|
||||
<div class="{$showSidebar ? 'md:hidden' : ''} flex flex-none items-center self-start">
|
||||
<Tooltip
|
||||
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { updateFolderChatLists } from '$lib/stores/folderStates';
|
||||
import { getPageContext, onTabLeave } from '$lib/utils/page';
|
||||
const { goto, url: pageUrl } = getPageContext();
|
||||
const { goto, url: pageUrl, tab: pageTab } = getPageContext();
|
||||
|
||||
import CommentButton from '$lib/components/comments/CommentButton.svelte';
|
||||
import { commentSurface, contentHash, noteCommentText } from '$lib/components/comments/anchors';
|
||||
@@ -1148,7 +1148,7 @@ ${content}
|
||||
<div class=" w-full flex flex-col {loading ? 'opacity-20' : ''}">
|
||||
<div class="shrink-0 w-full flex justify-between items-center px-1.5 md:px-3">
|
||||
<div class="w-full min-w-0 flex items-center">
|
||||
{#if $mobile}
|
||||
{#if $mobile && !pageTab}
|
||||
<Tooltip
|
||||
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
|
||||
>
|
||||
@@ -1169,7 +1169,7 @@ ${content}
|
||||
{/if}
|
||||
|
||||
<input
|
||||
class="w-full text-sm font-normal bg-transparent outline-hidden {$mobile
|
||||
class="w-full text-sm font-normal bg-transparent outline-hidden {$mobile && !pageTab
|
||||
? 'ml-1'
|
||||
: ''}"
|
||||
type="text"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { getPageContext } from '$lib/utils/page';
|
||||
const { goto } = getPageContext();
|
||||
const { goto, tab: pageTab } = getPageContext();
|
||||
|
||||
import WorkspaceAccessModal from '$lib/components/workspace/common/WorkspaceAccessModal.svelte';
|
||||
let accessModal: WorkspaceAccessModal;
|
||||
@@ -427,7 +427,7 @@
|
||||
</DeleteConfirmDialog>
|
||||
|
||||
<div class="flex items-center gap-0.5 md:gap-1 mb-1">
|
||||
{#if $mobile}
|
||||
{#if $mobile && !pageTab}
|
||||
<div class="{$showSidebar ? 'md:hidden' : ''} flex flex-none items-center">
|
||||
<Tooltip
|
||||
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
>
|
||||
<nav class="pb-1 px-1.5 md:px-2.5 drag-region select-none">
|
||||
<div class="flex items-center gap-0.5 md:gap-1">
|
||||
{#if $mobile}
|
||||
{#if $mobile && !pageTab}
|
||||
<div class="{$showSidebar ? 'md:hidden' : ''} self-center flex flex-none items-center">
|
||||
<Tooltip
|
||||
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
<div class="flex h-full min-w-0 flex-1 flex-col">
|
||||
<nav class="px-1.5 drag-region select-none">
|
||||
<div class="flex items-center gap-0.5 md:gap-1">
|
||||
{#if $mobile}
|
||||
{#if $mobile && !pageTab}
|
||||
<div class="{$showSidebar ? 'md:hidden' : ''} self-center flex flex-none items-center">
|
||||
<Tooltip
|
||||
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
|
||||
|
||||
Reference in new issue
Block a user