Skip to content

Commit 8c26b47

Browse files
committed
feat: add small ui/ux improvements
1 parent b477530 commit 8c26b47

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Kaede is not even in a development stage yet. Check the [plan](./PLAN.md) to see
2525

2626
## Contributing
2727

28-
[Contributing Guide](./CONTRIBUTING.md)
28+
[Contributing Guidelines](./CONTRIBUTING.md)
2929

3030
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
3131

src/components/logging/LogViewer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ onMounted(async () => {
113113
<template>
114114
<div
115115
@contextmenu.prevent
116-
class="absolute z-40000 bottom-0 left-0 right-0 top-0 grid place-items-center pointer-events-none"
116+
class="absolute z-40000 bottom-0 left-0 bg-[theme(colors.black/.5)] right-0 top-0 grid place-items-center"
117117
>
118118
<div
119119
@contextmenu.prevent
120120
@contextmenu="showContextMenu"
121-
class="rounded-md pointer-events-auto h-fit max-h-[calc(100vh-64px)] max-w-[calc(100vw-64px)] w-fit flex flex-col gap-2 bg-neutral-900 p-4 text-white drop-shadow-lg"
121+
class="rounded-md h-fit max-h-[calc(100vh-64px)] max-w-[calc(100vw-64px)] w-fit flex flex-col gap-2 bg-neutral-900 p-4 text-white drop-shadow-lg"
122122
>
123123
<div class="w-full flex flex-nowrap items-start justify-between gap-4 pb-2 shrink-0">
124124
<div class="flex flex-col gap-2">

src/components/statuses/GlobalError.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ const information = computed((): ReturnType<typeof extractError> => {
2626
Kaede ran into a problem and needs to restart.
2727
You can do it by closing this window and then opening Kaede again.
2828
</p>
29-
<p class="text-xl font-light">
29+
<p v-if="information.name || information.message" class="text-xl font-light">
3030
{{ information.name }}: {{ information.message }}
3131
</p>
32-
<p class="break-words text-sm text-neutral-300 font-light">
32+
<p v-if="information.stack" class="break-words text-sm text-neutral-300 font-light">
3333
{{ information.stack }}
3434
</p>
3535
</div>

src/pages/Home.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<script setup lang="ts">
22
3-
import { inject } from "vue";
3+
import { inject, onMounted } from "vue";
44
import type { GlobalStatesChangerType } from "@/types/application/global-states.type.ts";
55
import { GlobalStatesChangerContextKey } from "@/constants/application.ts";
66
77
const changeGlobalState = inject<GlobalStatesChangerType>(GlobalStatesChangerContextKey);
88
99
async function download() { /* TODO */ }
1010
async function run() { /* TODO */ }
11+
12+
onMounted(() => {
13+
throw new Error("myheavyass 🥀");
14+
});
1115
</script>
1216

1317
<template>

0 commit comments

Comments
 (0)