components/ui and the pages now use only the style.css scale: text-[0.8rem]→text-label, text-[0.625rem]→text-micro, text-base/text-sm→ text-label (rows and controls), text-xs→text-caption (captions and secondary text), text-lg/text-xl/text-2xl→text-title (panel and page titles). Rendered markdown (ChatMarkdown/ChatInline/markdown.ts) keeps Tailwind steps as the issue allows. 196 files, class-token swaps only.
23 lines
776 B
Vue
23 lines
776 B
Vue
<script setup lang="ts">
|
|
import { computed } from "vue";
|
|
|
|
import { useSettingsStore } from "@/stores/settings";
|
|
import { formatValue } from "@/lib/changes";
|
|
|
|
/**
|
|
* The previous value of an edited field, inline at the control: "was 1m0s".
|
|
*
|
|
* It reads the same per-kind diff the save bar and the route guard read, so
|
|
* the hint, the review drawer and the dirty count can never disagree about
|
|
* whether a field changed.
|
|
*/
|
|
const props = defineProps<{ kind: string; path: string }>();
|
|
const store = useSettingsStore();
|
|
const change = computed(() => store.changeFor(props.kind, props.path));
|
|
</script>
|
|
|
|
<template>
|
|
<span v-if="change" class="text-caption whitespace-nowrap text-fg-subtle">was <s class="font-mono">{{ formatValue(change.before) }}</s>
|
|
</span>
|
|
</template>
|