Skip to content

Commit

Permalink
styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EMcNugget committed Sep 6, 2024
1 parent b5eb073 commit c6c59ab
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { RouterLink, RouterView } from "vue-router";
<template>
<Suspense>
<CLayout>
<div v-if="$route.path === '/'">
<div v-if="$route.path === '/'" class="flex justify-center">
<h1 class="absolute top-0 mt-6 font-semibold text-4xl">
vATIS Utilites
</h1>
Expand Down
26 changes: 13 additions & 13 deletions src/views/EditContraction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { invoke } from "@tauri-apps/api/core";
import { computed, ref } from "vue";
import { use_store } from "../lib/stores";
import { TAlert } from "src/lib/types";
import { type TAlert } from "../lib/types";
const store = use_store();
Expand Down Expand Up @@ -38,16 +38,16 @@ const add = () => {
new_contraction.value = { string: "", spoken: "" };
};
const remove = (index: number) => {
const keys = Object.keys(contractions.value.notam_contractions);
const remove_contraction = (index: number) => {
const remove = (index: number) => {
const keys = Object.keys(contractions.value.notam_contractions);
const key = keys[index];
const { [key]: removed, ...rest } = contractions.value.notam_contractions;
const key = keys[index];
const { [key]: removed, ...rest } = contractions.value.notam_contractions;
contractions.value.notam_contractions = rest;
};
contractions.value.notam_contractions = rest;
};
const remove_contraction = (index: number) => {
message.value = {
message: "Are you sure you want to delete this contraction?",
alert_type: "warn",
Expand All @@ -57,13 +57,13 @@ const remove_contraction = (index: number) => {
</script>

<template>
<div class="overflow-x-auto h-1/2 border-2 border-outline p-1 rounded-lg">
<div class="overflow-x-auto h-1/2 border-2 border-outline rounded-lg">
<table class="table border-collapse border-outline rounded-lg">
<thead>
<thead class="sticky top-0 shadow-md bg-accent z-10">
<tr>
<th></th>
<th>Contraction</th>
<th>Spoken</th>
<th class="text-base-content">Contraction</th>
<th class="text-base-content">Spoken</th>
<th></th>
</tr>
</thead>
Expand Down Expand Up @@ -122,7 +122,7 @@ const remove_contraction = (index: number) => {
@input="new_contraction.spoken = new_contraction.spoken.toUpperCase()"
/>
<button
class="btn btn-active btn-primary w-1/4"
class="btn btn-active btn-neutral w-1/4"
onclick="my_modal_1.close()"
@click="add()"
>
Expand Down
4 changes: 3 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ export default {
{
light: {
...require("daisyui/src/theming/themes")["light"],
primary: "2b3440",
primary: "#2b3440",
accent: "#d2d2d2",
},
dark: {
...require("daisyui/src/theming/themes")["dark"],
primary: "#111419",
accent: "#2a323c",
},
},
"dark",
Expand Down

0 comments on commit c6c59ab

Please sign in to comment.