refactor: simplify button styles across Svelte components
- Removed unnecessary 'btn-square' class from buttons in multiple components to streamline styling. - Updated button elements in SolicitarFerias, editar, cadastro, and times pages for consistency and improved readability. - Replaced SVG icons with Lucide icons for better visual consistency in the cadastro page. - Cleaned up imports in the cadastro page to enhance code clarity.
This commit is contained in:
@@ -211,7 +211,7 @@
|
||||
{#if periodos.length > 1}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-xs btn-error btn-square"
|
||||
class="btn btn-xs btn-error"
|
||||
aria-label="Remover período"
|
||||
onclick={() => removerPeriodo(periodo.id)}
|
||||
>
|
||||
|
||||
@@ -1554,7 +1554,7 @@
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm btn-error btn-square"
|
||||
class="btn btn-sm btn-error"
|
||||
aria-label="Remover curso"
|
||||
onclick={() => removerCurso(curso.id)}
|
||||
>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
maskCEP,
|
||||
maskPhone,
|
||||
maskDate,
|
||||
maskUF,
|
||||
onlyDigits,
|
||||
validateCPF,
|
||||
validateDate
|
||||
@@ -23,12 +22,9 @@
|
||||
APOSENTADO_OPTIONS,
|
||||
UFS_BRASIL
|
||||
} from '$lib/utils/constants';
|
||||
import {
|
||||
documentos,
|
||||
categoriasDocumentos,
|
||||
getDocumentosByCategoria
|
||||
} from '$lib/utils/documentos';
|
||||
import { categoriasDocumentos, getDocumentosByCategoria } from '$lib/utils/documentos';
|
||||
import ModelosDeclaracoes from '$lib/components/ModelosDeclaracoes.svelte';
|
||||
import { Trash, X } from 'lucide-svelte';
|
||||
|
||||
const client = useConvexClient();
|
||||
|
||||
@@ -1055,7 +1051,7 @@
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm btn-error btn-square"
|
||||
class="btn btn-sm btn-error"
|
||||
aria-label="Remover curso"
|
||||
onclick={() => removerCurso(curso.id)}
|
||||
>
|
||||
@@ -1325,7 +1321,7 @@
|
||||
{#if dependentes.length > 0}
|
||||
<div class="space-y-2">
|
||||
<h3 class="text-sm font-semibold">Dependentes adicionados ({dependentes.length}/10)</h3>
|
||||
{#each dependentes as dep}
|
||||
{#each dependentes as dep (dep.id)}
|
||||
<div class="bg-base-200 flex items-center gap-3 rounded-lg p-3">
|
||||
<div class="flex-1 text-sm">
|
||||
<p class="font-semibold">{dep.nome} — {dep.parentesco}</p>
|
||||
@@ -1353,23 +1349,11 @@
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm btn-error btn-square"
|
||||
class="btn btn-sm btn-error"
|
||||
aria-label="Remover dependente"
|
||||
onclick={() => removerDependente(dep.id)}
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="h-4 w-4"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
><path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M6 18L18 6M6 6l12 12"
|
||||
/></svg
|
||||
>
|
||||
<Trash class="h-5 w-5" />
|
||||
</button>
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
@@ -454,7 +454,7 @@
|
||||
<h2 class="card-title text-lg">{time.nome}</h2>
|
||||
</div>
|
||||
<div class="dropdown dropdown-end">
|
||||
<button type="button" class="btn btn-sm btn-square" aria-label="Menu do time">
|
||||
<button type="button" class="btn btn-sm" aria-label="Menu do time">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="h-5 w-5"
|
||||
@@ -664,7 +664,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
class="btn btn-sm btn-error btn-square"
|
||||
class="btn btn-sm btn-error"
|
||||
onclick={() => removerMembro(membro._id)}
|
||||
disabled={processando}
|
||||
aria-label="Remover membro"
|
||||
|
||||
Reference in New Issue
Block a user