diff --git a/src/kit/code-block.tsx b/src/kit/code-block.tsx index 3b5fb2a..2bc099e 100644 --- a/src/kit/code-block.tsx +++ b/src/kit/code-block.tsx @@ -6,15 +6,15 @@ import { copyToClipboard } from "../lib/clipboard" /** Фрагмент кода с кнопкой копирования. */ export function CodeBlock({ code, className }: { code: string; className?: string }) { return ( -
-
+    
+
         {code}
       
diff --git a/src/kit/page-frame.tsx b/src/kit/page-frame.tsx index fcb39bc..6220baa 100644 --- a/src/kit/page-frame.tsx +++ b/src/kit/page-frame.tsx @@ -18,6 +18,7 @@ export function PageFrame({ actions, toolbar, scroll = true, + showTitleOnMobile = false, className, children, }: { @@ -28,6 +29,8 @@ export function PageFrame({ toolbar?: React.ReactNode /** false — тело само управляет прокруткой (списки с панелью деталей). */ scroll?: boolean + /** Не скрывать текст заголовка рядом с иконкой на узком экране. */ + showTitleOnMobile?: boolean className?: string children: React.ReactNode }) { @@ -40,7 +43,7 @@ export function PageFrame({

{Icon && } - {title} + {title}

{actions} diff --git a/src/kit/patient-panel.tsx b/src/kit/patient-panel.tsx index 40dee9f..c838ca4 100644 --- a/src/kit/patient-panel.tsx +++ b/src/kit/patient-panel.tsx @@ -43,7 +43,7 @@ export function PatientPanel({ const fullName = [p.lastName, p.firstName, p.middleName].filter(Boolean).join(" ") return ( -
+
({
- {actions &&
{actions}
} + {actions && ( +
+ {actions} +
+ )}