mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
refac
This commit is contained in:
parent
0628670f56
commit
a5f9ec38a5
2 changed files with 7 additions and 7 deletions
|
|
@ -2545,7 +2545,7 @@
|
|||
{#if visibleEntries.length > 0 || creatingFolder || creatingFile}
|
||||
<ul
|
||||
class={viewMode === 'grid'
|
||||
? 'grid grid-cols-[repeat(auto-fill,minmax(min(100px,calc((100%_-_0.625rem)/2)),1fr))] gap-2.5 p-3'
|
||||
? 'grid grid-cols-[repeat(auto-fill,minmax(min(94px,calc((100%_-_0.5rem)/2)),1fr))] gap-2 p-2.5'
|
||||
: ''}
|
||||
>
|
||||
{#each visibleEntries as entry (entry.fullPath)}
|
||||
|
|
|
|||
|
|
@ -231,8 +231,8 @@
|
|||
<div
|
||||
class="w-full flex items-center transition-colors duration-75 {viewMode === 'grid'
|
||||
? folderCard
|
||||
? 'relative h-18'
|
||||
: 'relative h-[4.125rem] rounded-md border border-black/[0.06] bg-gray-50/40 dark:border-white/[0.06] dark:bg-gray-900'
|
||||
? 'relative h-17'
|
||||
: 'relative h-[3.875rem] rounded-md border border-black/[0.06] bg-gray-50/40 dark:border-white/[0.06] dark:bg-gray-900'
|
||||
: ''} {variant === 'workspace' ? 'rounded-xl' : ''}
|
||||
{folderCard
|
||||
? ''
|
||||
|
|
@ -290,7 +290,7 @@
|
|||
class="pointer-events-none absolute inset-0 h-full w-full {dragOverFolder
|
||||
? 'text-black/25 dark:text-white/25'
|
||||
: 'text-black/10 dark:text-white/10'}"
|
||||
viewBox="0 0 200 72"
|
||||
viewBox="0 0 200 68"
|
||||
preserveAspectRatio="none"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
|
|
@ -310,7 +310,7 @@
|
|||
/>
|
||||
{/if}
|
||||
<path
|
||||
d="M1 20Q1 13 9 13H191Q199 13 199 20V64Q199 71 191 71H9Q1 71 1 64Z"
|
||||
d="M1 20Q1 13 9 13H191Q199 13 199 20V60Q199 67 191 67H9Q1 67 1 60Z"
|
||||
vector-effect="non-scaling-stroke"
|
||||
class={selected || active || dragOverFolder
|
||||
? 'fill-black/5 dark:fill-white/8'
|
||||
|
|
@ -370,8 +370,8 @@
|
|||
type="button"
|
||||
class="flex min-w-0 flex-1 items-center {viewMode === 'grid'
|
||||
? folderCard
|
||||
? 'h-18 flex-col !items-start justify-start gap-0.5 px-1.5 pt-4 pb-1.5 text-left'
|
||||
: 'h-16 flex-col !items-start justify-start gap-0.5 p-1.5 text-left'
|
||||
? 'h-17 flex-col !items-start justify-start gap-0.5 px-1.5 pt-4 pb-1.5 text-left'
|
||||
: 'h-15 flex-col !items-start justify-start gap-0.5 p-1.5 text-left'
|
||||
: 'gap-1.5 py-1.5 pr-2 text-left'}"
|
||||
title={hoverDisabled ? entry.name : undefined}
|
||||
draggable={canMutate}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue