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.
24 lines
953 B
Vue
24 lines
953 B
Vue
<script setup lang="ts">
|
|
import { computed } from "vue";
|
|
|
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
|
import { selectorData, setModel } from "./state";
|
|
|
|
defineProps<{ choose: "model" }>();
|
|
|
|
const options = computed(() => selectorData.value.models ?? []);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="text-label">
|
|
<p class="text-label font-medium">Choose a model</p>
|
|
<p v-if="!options.length" class="mt-1 text-fg-muted">None configured.</p>
|
|
<Select v-else :model-value="selectorData.active_model" class="mt-2" @update:model-value="(v) => void setModel(String(v))">
|
|
<SelectTrigger class="w-full font-mono" aria-label="Model"><SelectValue placeholder="Choose a model" /></SelectTrigger>
|
|
<SelectContent>
|
|
<SelectItem v-for="option in options" :key="option" :value="option" class="font-mono">{{ option }}</SelectItem>
|
|
</SelectContent>
|
|
</Select>
|
|
</div>
|
|
</template>
|