Files
archie/ui/src/settings/DraftHint.vue
T
sam 94f79177a2
deploy / gate (push) Successful in 4m53s
Quality / check (push) Successful in 6m42s
deploy / archied-image (push) Successful in 3m20s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped
fix(ui): adopt the type scale across components/ui and pages (#1758)
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.
2026-11-06 23:07:46 +11:00

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>