Simplify generation controls with task navigation and settings drawer

This commit is contained in:
Towsty
2026-09-07 08:36:33 -05:00
parent 7a2069462e
commit 174d40a7dc
7 changed files with 177 additions and 13 deletions
+4 -3
View File
@@ -1,6 +1,6 @@
<template>
<div class="space-y-3">
<div class="flex flex-wrap items-center gap-2">
<div v-if="!simple" class="flex flex-wrap items-center gap-2">
<KeepPromptMenu
:items="keepItems"
:heading="keepHeading"
@@ -23,7 +23,7 @@
<span class="text-[11px] text-zinc-500">Snippets go into {{ targetLabel }}.</span>
</div>
<label class="block text-sm">
<label v-if="!simple || pre.trim()" class="block text-sm">
<span class="mb-1 block text-xs font-medium text-zinc-400">Pre-text</span>
<textarea
:value="pre"
@@ -67,7 +67,7 @@
</button>
</label>
<label class="block text-sm">
<label v-if="!simple || post.trim()" class="block text-sm">
<span class="mb-1 block text-xs font-medium text-zinc-400">Post-text</span>
<textarea
:value="post"
@@ -126,6 +126,7 @@ const targets = [
]
const props = withDefaults(defineProps<{
simple?: boolean
pre?: string
prompt?: string
post?: string