mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Refactor previous commit
This commit is contained in:
@@ -667,7 +667,9 @@ const SidebarItem = forwardRef(function SidebarItem(
|
|||||||
isActive && 'bg-highlightSecondary text-gray-800',
|
isActive && 'bg-highlightSecondary text-gray-800',
|
||||||
!isActive &&
|
!isActive &&
|
||||||
'text-gray-600 group-hover/item:text-gray-800 active:bg-highlightSecondary',
|
'text-gray-600 group-hover/item:text-gray-800 active:bg-highlightSecondary',
|
||||||
selected && useProminentStyles && '!bg-violet-400/20 text-gray-800',
|
selected && useProminentStyles && '!bg-violet-400/20',
|
||||||
|
!itemName && selected && '!text-gray-600 italic',
|
||||||
|
!itemName && !selected && '!text-gray-400 italic',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{itemModel === 'folder' && (
|
{itemModel === 'folder' && (
|
||||||
@@ -689,9 +691,7 @@ const SidebarItem = forwardRef(function SidebarItem(
|
|||||||
onKeyDown={handleInputKeyDown}
|
onKeyDown={handleInputKeyDown}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<span className={classNames('truncate', !itemName && 'text-gray-400 italic')}>
|
<span className="truncate">{itemName || itemFallbackName || 'New Request'}</span>
|
||||||
{itemName || itemFallbackName || 'New Request'}
|
|
||||||
</span>
|
|
||||||
)}
|
)}
|
||||||
{latestResponse && (
|
{latestResponse && (
|
||||||
<div className="ml-auto">
|
<div className="ml-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user