Simplify generation controls with task navigation and settings drawer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user