forked from RiseUP/riseup-squad20
fix-hover-errors
This commit is contained in:
parent
3c636ff537
commit
63776d638c
@ -609,7 +609,7 @@ export default function LaudosEditorPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeBold(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeBold(); }}
|
||||||
title="Negrito (Ctrl+B)"
|
title="Negrito (Ctrl+B)"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<strong>B</strong>
|
<strong>B</strong>
|
||||||
</Button>
|
</Button>
|
||||||
@ -618,7 +618,7 @@ export default function LaudosEditorPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeItalic(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeItalic(); }}
|
||||||
title="Itálico (Ctrl+I)"
|
title="Itálico (Ctrl+I)"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<em>I</em>
|
<em>I</em>
|
||||||
</Button>
|
</Button>
|
||||||
@ -627,7 +627,7 @@ export default function LaudosEditorPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeUnderline(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeUnderline(); }}
|
||||||
title="Sublinhado (Ctrl+U)"
|
title="Sublinhado (Ctrl+U)"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<u>U</u>
|
<u>U</u>
|
||||||
</Button>
|
</Button>
|
||||||
@ -636,34 +636,34 @@ export default function LaudosEditorPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeStrikethrough(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeStrikethrough(); }}
|
||||||
title="Tachado"
|
title="Tachado"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<del>S</del>
|
<del>S</del>
|
||||||
</Button>
|
</Button>
|
||||||
<div className="w-px h-6 bg-border mx-1" />
|
<div className="w-px h-6 bg-border mx-1" />
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertUnorderedList(); }} title="Lista com marcadores" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertUnorderedList(); }} title="Lista com marcadores" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
•
|
•
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertOrderedList(); }} title="Lista numerada" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertOrderedList(); }} title="Lista numerada" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
1.
|
1.
|
||||||
</Button>
|
</Button>
|
||||||
<div className="w-px h-6 bg-border mx-1" />
|
<div className="w-px h-6 bg-border mx-1" />
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignLeft(); }} title="Alinhar à esquerda" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignLeft(); }} title="Alinhar à esquerda" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
◄
|
◄
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignCenter(); }} title="Centralizar" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignCenter(); }} title="Centralizar" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
·
|
·
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignRight(); }} title="Alinhar à direita" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignRight(); }} title="Alinhar à direita" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
►
|
►
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignJustify(); }} title="Justificar" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); alignJustify(); }} title="Justificar" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
≡
|
≡
|
||||||
</Button>
|
</Button>
|
||||||
<div className="w-px h-6 bg-border mx-1" />
|
<div className="w-px h-6 bg-border mx-1" />
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
<Button variant="outline" size="sm" title="Frases prontas" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" title="Frases prontas" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
<BookOpen className="w-4 h-4" />
|
<BookOpen className="w-4 h-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
@ -915,7 +915,7 @@ export default function LaudosEditorPage() {
|
|||||||
Editor de relatórios com formatação de texto rica.
|
Editor de relatórios com formatação de texto rica.
|
||||||
</div>
|
</div>
|
||||||
<div className="flex gap-2 w-full sm:w-auto">
|
<div className="flex gap-2 w-full sm:w-auto">
|
||||||
<Button variant="outline" onClick={handleCancel} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10">
|
<Button variant="outline" onClick={handleCancel} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
Cancelar
|
Cancelar
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={handleSave} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10">
|
<Button onClick={handleSave} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10">
|
||||||
@ -940,14 +940,14 @@ export default function LaudosEditorPage() {
|
|||||||
setShowDraftConfirm(false);
|
setShowDraftConfirm(false);
|
||||||
discardDraft();
|
discardDraft();
|
||||||
}}
|
}}
|
||||||
className="text-xs sm:text-sm h-9 sm:h-10"
|
className="text-xs sm:text-sm h-9 sm:h-10 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
Descartar
|
Descartar
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
onClick={() => setShowDraftConfirm(false)}
|
onClick={() => setShowDraftConfirm(false)}
|
||||||
className="text-xs sm:text-sm h-9 sm:h-10"
|
className="text-xs sm:text-sm h-9 sm:h-10 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
Voltar
|
Voltar
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -437,7 +437,7 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeBold(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeBold(); }}
|
||||||
title="Negrito (Ctrl+B)"
|
title="Negrito (Ctrl+B)"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<strong>B</strong>
|
<strong>B</strong>
|
||||||
</Button>
|
</Button>
|
||||||
@ -446,7 +446,7 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeItalic(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeItalic(); }}
|
||||||
title="Itálico (Ctrl+I)"
|
title="Itálico (Ctrl+I)"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<em>I</em>
|
<em>I</em>
|
||||||
</Button>
|
</Button>
|
||||||
@ -455,7 +455,7 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeUnderline(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeUnderline(); }}
|
||||||
title="Sublinhado (Ctrl+U)"
|
title="Sublinhado (Ctrl+U)"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<u>U</u>
|
<u>U</u>
|
||||||
</Button>
|
</Button>
|
||||||
@ -464,15 +464,15 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); makeStrikethrough(); }}
|
onMouseDown={(e) => { e.preventDefault(); makeStrikethrough(); }}
|
||||||
title="Tachado"
|
title="Tachado"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
<del>S</del>
|
<del>S</del>
|
||||||
</Button>
|
</Button>
|
||||||
<div className="w-px h-6 bg-border mx-1" />
|
<div className="w-px h-6 bg-border mx-1" />
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertUnorderedList(); }} title="Lista com marcadores" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertUnorderedList(); }} title="Lista com marcadores" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
•
|
•
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertOrderedList(); }} title="Lista numerada" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" onMouseDown={(e) => { e.preventDefault(); insertOrderedList(); }} title="Lista numerada" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
1.
|
1.
|
||||||
</Button>
|
</Button>
|
||||||
<div className="w-px h-6 bg-border mx-1" />
|
<div className="w-px h-6 bg-border mx-1" />
|
||||||
@ -481,7 +481,7 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); alignLeft(); }}
|
onMouseDown={(e) => { e.preventDefault(); alignLeft(); }}
|
||||||
title="Alinhar à esquerda"
|
title="Alinhar à esquerda"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
◄
|
◄
|
||||||
</Button>
|
</Button>
|
||||||
@ -490,7 +490,7 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); alignCenter(); }}
|
onMouseDown={(e) => { e.preventDefault(); alignCenter(); }}
|
||||||
title="Centralizar"
|
title="Centralizar"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
·
|
·
|
||||||
</Button>
|
</Button>
|
||||||
@ -499,7 +499,7 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); alignRight(); }}
|
onMouseDown={(e) => { e.preventDefault(); alignRight(); }}
|
||||||
title="Alinhar à direita"
|
title="Alinhar à direita"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
►
|
►
|
||||||
</Button>
|
</Button>
|
||||||
@ -508,14 +508,14 @@ export default function EditarLaudoPage() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
onMouseDown={(e) => { e.preventDefault(); alignJustify(); }}
|
onMouseDown={(e) => { e.preventDefault(); alignJustify(); }}
|
||||||
title="Justificar"
|
title="Justificar"
|
||||||
className="text-xs h-8 px-2"
|
className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950"
|
||||||
>
|
>
|
||||||
≡
|
≡
|
||||||
</Button>
|
</Button>
|
||||||
<div className="w-px h-6 bg-border mx-1" />
|
<div className="w-px h-6 bg-border mx-1" />
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
<Button variant="outline" size="sm" title="Frases prontas" className="text-xs h-8 px-2 hover:bg-muted">
|
<Button variant="outline" size="sm" title="Frases prontas" className="text-xs h-8 px-2 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
<BookOpen className="w-4 h-4" />
|
<BookOpen className="w-4 h-4" />
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
@ -711,7 +711,7 @@ export default function EditarLaudoPage() {
|
|||||||
Edite as informações do laudo e salve as alterações.
|
Edite as informações do laudo e salve as alterações.
|
||||||
</div>
|
</div>
|
||||||
<div className="flex gap-2 w-full sm:w-auto">
|
<div className="flex gap-2 w-full sm:w-auto">
|
||||||
<Button variant="outline" onClick={() => router.back()} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10">
|
<Button variant="outline" onClick={() => router.back()} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10 hover:bg-blue-50 dark:hover:bg-blue-950">
|
||||||
Cancelar
|
Cancelar
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={handleSave} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10">
|
<Button onClick={handleSave} className="flex-1 sm:flex-none text-xs sm:text-sm h-8 sm:h-10">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user