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 icon?: LucideIcon
|
||||||
readonly letter?: string
|
readonly letter?: string
|
||||||
readonly tone?: PageTabTone
|
readonly tone?: PageTabTone
|
||||||
/** Красная точка — у пациента есть важная отметка. */
|
/** Красная точка и её причина — показывается в подсказке («Аллергия на пенициллин», «Новые ответы: 2»). */
|
||||||
readonly alert?: boolean
|
readonly alert?: string
|
||||||
/** Нельзя закрыть и перетащить. */
|
/** Нельзя закрыть и перетащить. */
|
||||||
readonly pinned?: boolean
|
readonly pinned?: boolean
|
||||||
}
|
}
|
||||||
|
|
@ -272,7 +272,7 @@ function TabFace({
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{tab.letter ?? tab.label[0]}
|
{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>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
@ -281,9 +281,17 @@ function TabFace({
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<span className="truncate">{tab.label}</span>
|
<span className="truncate">{tab.label}</span>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent side="bottom" className="flex items-center gap-2">
|
<TooltipContent side="bottom">
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
{tab.label}
|
{tab.label}
|
||||||
{hotkey && <Kbd>{hotkey}</Kbd>}
|
{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>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
) : (
|
) : (
|
||||||
|
|
@ -349,7 +357,7 @@ function OverflowTabs({
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{tab.letter ?? tab.label[0]}
|
{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>
|
||||||
)}
|
)}
|
||||||
<span className="min-w-0 flex-1 truncate">{tab.label}</span>
|
<span className="min-w-0 flex-1 truncate">{tab.label}</span>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue