File tree Expand file tree Collapse file tree
src/lib/components/admin/Settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 301301 {#if selectedModelId === null }
302302 <div class =" flex flex-col gap-1 mt-1.5 mb-2" >
303303 <div class =" flex justify-between items-center" >
304- <div class =" flex items-center md:self-center text-xl font-medium px-0.5 gap-2" >
305- {$i18n .t (' Models' )}
306- <span class =" text-lg font-medium text-gray-500 dark:text-gray-300"
307- >{filteredModels .length }</span
308- >
304+ <div class =" flex items-center md:self-center text-xl font-medium px-0.5 gap-2 shrink-0" >
305+ <div >
306+ {$i18n .t (' Models' )}
307+ </div >
308+
309+ <div class =" text-lg font-medium text-gray-500 dark:text-gray-500" >
310+ {filteredModels .length }
311+ </div >
309312 </div >
310313
311- <div class =" flex items-center gap-1.5" >
312- <Tooltip content ={ $i18n . t ( ' Manage Models ' )}>
313- < button
314- class = " p-1 rounded-full flex gap-1 items-center "
315- type = " button "
316- on:click ={() => {
317- showManageModal = true ;
318- }}
319- >
320- < Download />
321- </button >
322- </Tooltip >
314+ <div class =" flex w-full justify-end gap-1.5" >
315+ <button
316+ class = " flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition "
317+ type = " button "
318+ on:click ={() => {
319+ showManageModal = true ;
320+ }}
321+ >
322+ < div class = " self-center font-medium line-clamp-1 " >
323+ { $i18n . t ( ' Manage ' )}
324+ </div >
325+ </button >
323326
324- <Tooltip content ={ $i18n . t ( ' Settings ' )}>
325- < button
326- class = " p-1 rounded-full flex gap-1 items-center "
327- type = " button "
328- on:click ={() => {
329- showConfigModal = true ;
330- }}
331- >
332- < Cog6 />
333- </button >
334- </Tooltip >
327+ <button
328+ class = " flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition "
329+ type = " button "
330+ on:click ={() => {
331+ showConfigModal = true ;
332+ }}
333+ >
334+ < div class = " self-center font-medium line-clamp-1 " >
335+ { $i18n . t ( ' Settings ' )}
336+ </div >
337+ </button >
335338 </div >
336339 </div >
337340 </div >
You can’t perform that action at this time.
0 commit comments