Skip to content

Commit 2ac8466

Browse files
committed
🐛fix: default show 3 dots
1 parent dc4e592 commit 2ac8466

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

web-app/src/containers/DownloadManegement.tsx

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ export function DownloadManagement() {
182182
getProviders().then(setProviders)
183183
toast.success(t('common:toast.downloadComplete.title'), {
184184
id: 'download-complete',
185-
description: t('common:toast.downloadComplete.description', { modelId: state.modelId }),
185+
description: t('common:toast.downloadComplete.description', {
186+
modelId: state.modelId,
187+
}),
186188
})
187189
},
188190
[removeDownload, removeLocalDownloadingModel, setProviders, t]
@@ -237,10 +239,14 @@ export function DownloadManagement() {
237239
<PopoverTrigger asChild>
238240
{isLeftPanelOpen ? (
239241
<div className="bg-left-panel-fg/10 hover:bg-left-panel-fg/12 p-2 rounded-md my-1 relative border border-left-panel-fg/10 cursor-pointer text-left">
240-
<div className="bg-primary font-bold size-5 rounded-full absolute -top-2 -right-1 flex items-center justify-center text-primary-fg">
241-
{downloadCount}
242+
<div className="text-left-panel-fg/80 font-medium flex gap-2">
243+
<span>{t('downloads')}</span>
244+
<span>
245+
<div className="bg-primary font-bold size-5 rounded-full flex items-center justify-center text-primary-fg">
246+
{downloadCount}
247+
</div>
248+
</span>
242249
</div>
243-
<p className="text-left-panel-fg/80 font-medium">{t('downloads')}</p>
244250
<div className="mt-2 flex items-center justify-between space-x-2">
245251
<Progress value={overallProgress * 100} />
246252
<span className="text-xs font-medium text-left-panel-fg/80 shrink-0">
@@ -272,7 +278,9 @@ export function DownloadManagement() {
272278
>
273279
<div className="flex flex-col">
274280
<div className="p-2 py-1.5 bg-main-view-fg/5 border-b border-main-view-fg/6">
275-
<p className="text-xs text-main-view-fg/70">{t('downloading')}</p>
281+
<p className="text-xs text-main-view-fg/70">
282+
{t('downloading')}
283+
</p>
276284
</div>
277285
<div className="p-2 max-h-[300px] overflow-y-auto space-y-2">
278286
{appUpdateState.isDownloading && (
@@ -309,10 +317,15 @@ export function DownloadManagement() {
309317
title="Cancel download"
310318
onClick={() => {
311319
abortDownload(download.name).then(() => {
312-
toast.info(t('common:toast.downloadCancelled.title'), {
313-
id: 'cancel-download',
314-
description: t('common:toast.downloadCancelled.description'),
315-
})
320+
toast.info(
321+
t('common:toast.downloadCancelled.title'),
322+
{
323+
id: 'cancel-download',
324+
description: t(
325+
'common:toast.downloadCancelled.description'
326+
),
327+
}
328+
)
316329
if (downloadProcesses.length === 0) {
317330
setIsPopoverOpen(false)
318331
}

web-app/src/containers/ThreadList.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,13 @@ const SortableItem = memo(({ thread }: { thread: Thread }) => {
105105
{...attributes}
106106
{...listeners}
107107
onClick={handleClick}
108+
onContextMenu={(e) => {
109+
e.preventDefault()
110+
e.stopPropagation()
111+
setOpenDropdown(true)
112+
}}
108113
className={cn(
109-
'mb-1 rounded hover:bg-left-panel-fg/10 flex items-center justify-between gap-2 px-1.5 group/thread-list transition-all',
114+
'mb-1 rounded hover:bg-left-panel-fg/10 flex items-center justify-between gap-2 px-1.5 transition-all',
110115
isDragging ? 'cursor-move' : 'cursor-pointer',
111116
isActive && 'bg-left-panel-fg/10'
112117
)}
@@ -122,7 +127,7 @@ const SortableItem = memo(({ thread }: { thread: Thread }) => {
122127
<DropdownMenuTrigger asChild>
123128
<IconDots
124129
size={14}
125-
className="text-left-panel-fg/60 shrink-0 cursor-pointer px-0.5 -mr-1 data-[state=open]:bg-left-panel-fg/10 rounded group-hover/thread-list:data-[state=closed]:size-5 size-5 data-[state=closed]:size-0"
130+
className="text-left-panel-fg/60 shrink-0 cursor-pointer px-0.5 -mr-1 data-[state=open]:bg-left-panel-fg/10 rounded size-5"
126131
onClick={(e) => {
127132
e.preventDefault()
128133
e.stopPropagation()

0 commit comments

Comments
 (0)