fix: keep article close dialog actions contained
All checks were successful
Deploy Dzen assistant / deploy (push) Successful in 32s
All checks were successful
Deploy Dzen assistant / deploy (push) Successful in 32s
This commit is contained in:
parent
ecf89b8b8e
commit
56118fcb53
1 changed files with 5 additions and 5 deletions
|
|
@ -3068,13 +3068,13 @@ export default function App() {
|
|||
</div>
|
||||
{articleCloseConfirmOpen ? (
|
||||
<div className="absolute inset-0 z-10 flex items-center justify-center bg-background/80 p-4 backdrop-blur-sm" role="presentation">
|
||||
<section className="w-full max-w-sm rounded-lg border bg-background p-5 shadow-lg" role="dialog" aria-modal="true" aria-labelledby="article-close-confirm-title" aria-describedby="article-close-confirm-description">
|
||||
<section className="w-full max-w-md rounded-lg border bg-background p-5 shadow-lg" role="dialog" aria-modal="true" aria-labelledby="article-close-confirm-title" aria-describedby="article-close-confirm-description">
|
||||
<h3 id="article-close-confirm-title" className="text-lg font-semibold">Сохранить изменения?</h3>
|
||||
<p id="article-close-confirm-description" className="mt-2 text-sm text-muted-foreground">Несохранённые правки останутся только в этом браузере и будут потеряны при выходе.</p>
|
||||
<div className="mt-5 grid gap-2 sm:flex sm:justify-end">
|
||||
<Button variant="outline" className="h-11" onClick={stayInArticle}>Остаться</Button>
|
||||
<Button variant="outline" className="h-11" disabled={editorBusy} onClick={discardArticleChanges}>Не сохранять</Button>
|
||||
<Button className="h-11" disabled={editorBusy} onClick={() => void saveAndCloseArticle()}>
|
||||
<div className="mt-5 grid gap-2 sm:flex sm:flex-wrap sm:justify-end">
|
||||
<Button variant="outline" className="h-11 shrink-0" onClick={stayInArticle}>Остаться</Button>
|
||||
<Button variant="outline" className="h-11 shrink-0" disabled={editorBusy} onClick={discardArticleChanges}>Не сохранять</Button>
|
||||
<Button className="h-11 shrink-0" disabled={editorBusy} onClick={() => void saveAndCloseArticle()}>
|
||||
{editorBusy ? <Loader2 className="animate-spin" data-icon="inline-start" /> : null}
|
||||
Сохранить и выйти
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue