Logo double-click to home, drop SNILS menu item, explain tab dots
- Double-click on the МИС Медицина logo navigates to the home page - Remove «Скопировать СНИЛС» from the patient ⋯ menu (header already copies it) - Tab alert is now the reason text, not a flag: shown in the tab tooltip and on the sidebar row («Хроническая боль», «Новые ответы: 2») Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
97ea626045
commit
8c21fb618b
|
|
@ -22,8 +22,8 @@ export interface PageTabItem {
|
|||
readonly icon?: LucideIcon
|
||||
readonly letter?: string
|
||||
readonly tone?: PageTabTone
|
||||
/** Красная точка — у пациента есть важная отметка. */
|
||||
readonly alert?: boolean
|
||||
/** Красная точка и её причина — показывается в подсказке («Аллергия на пенициллин», «Новые ответы: 2»). */
|
||||
readonly alert?: string
|
||||
/** Нельзя закрыть и перетащить. */
|
||||
readonly pinned?: boolean
|
||||
}
|
||||
|
|
@ -272,7 +272,7 @@ function TabFace({
|
|||
)}
|
||||
>
|
||||
{tab.letter ?? tab.label[0]}
|
||||
{tab.alert && <span className="absolute -top-0.5 -right-0.5 size-2 rounded-full bg-coral ring-2 ring-card" />}
|
||||
{tab.alert && <span title={tab.alert} className="absolute -top-0.5 -right-0.5 size-2 rounded-full bg-coral ring-2 ring-card" />}
|
||||
</span>
|
||||
)}
|
||||
|
||||
|
|
@ -281,9 +281,17 @@ function TabFace({
|
|||
<TooltipTrigger asChild>
|
||||
<span className="truncate">{tab.label}</span>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="bottom" className="flex items-center gap-2">
|
||||
<TooltipContent side="bottom">
|
||||
<div className="flex items-center gap-2">
|
||||
{tab.label}
|
||||
{hotkey && <Kbd>{hotkey}</Kbd>}
|
||||
</div>
|
||||
{tab.alert && (
|
||||
<div className="mt-1 flex items-center gap-1.5 opacity-80">
|
||||
<span className="size-1.5 rounded-full bg-coral" />
|
||||
{tab.alert}
|
||||
</div>
|
||||
)}
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
) : (
|
||||
|
|
@ -349,7 +357,7 @@ function OverflowTabs({
|
|||
)}
|
||||
>
|
||||
{tab.letter ?? tab.label[0]}
|
||||
{tab.alert && <span className="absolute -top-0.5 -right-0.5 size-2 rounded-full bg-coral ring-2 ring-popover" />}
|
||||
{tab.alert && <span title={tab.alert} className="absolute -top-0.5 -right-0.5 size-2 rounded-full bg-coral ring-2 ring-popover" />}
|
||||
</span>
|
||||
)}
|
||||
<span className="min-w-0 flex-1 truncate">{tab.label}</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue