ledger balance

This commit is contained in:
Sirttas
2026-06-01 19:22:27 +02:00
parent 42c7e59d63
commit c23ec0cb53
26 changed files with 161 additions and 100 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ useEventListener('keyup', e => {
</template>
<style scoped>
@reference "tailwindcss";
@reference "@/style.css";
.chevron {
@apply w-4 h-4 me-1;
+4 -4
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { vOnClickOutside } from '@vueuse/components';
import { useEventListener } from '@vueuse/core';
import { watch } from 'vue';
import {vOnClickOutside} from '@vueuse/components';
import {useEventListener} from '@vueuse/core';
import {watch} from 'vue';
const open = defineModel('open', { default: false });
@@ -35,7 +35,7 @@ useEventListener('keyup', e => {
</template>
<style scoped>
@reference "tailwindcss";
@reference "@/style.css";
.fade-enter-from, .fade-leave-to {
@apply opacity-0;
}
+1 -1
View File
@@ -64,7 +64,7 @@ const submit = () => {
</template>
<style scoped>
@reference "tailwindcss";
@reference "@/style.css";
.fake-input {
@apply flex border bg-slate-500 rounded px-1 py-0.5;
}
+1 -1
View File
@@ -11,7 +11,7 @@ const modelValue = defineModel({ default: false });
</template>
<style scoped>
@reference "tailwindcss";
@reference "@/style.css";
input:checked ~ span:last-child {
--tw-translate-x: 1.25rem;
}
+2 -2
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { HeaderComponent, SortDirection } from './sort';
import {HeaderComponent, SortDirection} from './sort';
interface Props {
currentSortKey: string | null;
@@ -33,7 +33,7 @@ const emit = defineEmits<Emit>();
</template>
<style scoped>
@reference "tailwindcss";
@reference "@/style.css";
.sort-header {
@apply relative h-8 pe-3;
}
+25 -23
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useElementBounding, useVirtualList } from '@vueuse/core';
import { computed, ref } from 'vue';
import {useElementBounding, useVirtualList} from '@vueuse/core';
import {computed, ref} from 'vue';
interface Props {
list?: any[];
@@ -68,29 +68,31 @@ const itemHeightStyle = computed(() => {
</template>
<style scoped>
@reference "tailwindcss";
@reference "@/style.css";
div.table-container {
@apply bg-slate-600;
max-height: calc(100vh - v-bind(ypx));
:deep(>div) {
@apply bg-slate-800;
>table {
>thead {
@apply sticky z-10;
top: -1px;
}
>tfoot {
@apply bg-slate-600 sticky z-10;
bottom: -1px;
}
>*>tr, >*>tr>td {
height: v-bind(itemHeightStyle);
}
@apply bg-slate-600;
max-height: calc(100vh - v-bind(ypx));
&::-webkit-scrollbar-track {
margin-top: v-bind(computedHeaderHeight);
margin-bottom: v-bind(computedFooterHeight);
}
}
div.table-container:deep(>div) {
@apply bg-slate-800;
>table {
>thead {
@apply sticky z-10;
top: -1px;
}
>tfoot {
@apply bg-slate-600 sticky z-10;
bottom: -1px;
}
>*>tr, >*>tr>td {
height: v-bind(itemHeightStyle);
}
}
&::-webkit-scrollbar-track {
margin-top: v-bind(computedHeaderHeight);
margin-bottom: v-bind(computedFooterHeight);
}
}
</style>