fixes
This commit is contained in:
@@ -166,8 +166,13 @@ const historyTotal = ref(0)
|
||||
const historyRows = ref(50)
|
||||
const historyFirst = ref(0)
|
||||
|
||||
const isSettingsVisible = ref(false)
|
||||
const isSettingsVisible = ref(localStorage.getItem('flexible_gen_settings_visible') !== 'false')
|
||||
const isSubmitting = ref(false)
|
||||
|
||||
watch(isSettingsVisible, (val) => {
|
||||
localStorage.setItem('flexible_gen_settings_visible', val)
|
||||
})
|
||||
|
||||
const activeOverlayId = ref(null) // For mobile tap-to-show overlay
|
||||
const filterCharacter = ref(null) // Character filter for gallery
|
||||
|
||||
@@ -671,6 +676,15 @@ const clearPrompt = () => {
|
||||
previousPrompt.value = ''
|
||||
}
|
||||
|
||||
const pastePrompt = async () => {
|
||||
try {
|
||||
const text = await navigator.clipboard.readText()
|
||||
if (text) prompt.value = text
|
||||
} catch (err) {
|
||||
console.error('Failed to read clipboard', err)
|
||||
}
|
||||
}
|
||||
|
||||
const deleteGeneration = async (gen) => {
|
||||
if (!gen) return
|
||||
try {
|
||||
@@ -1144,6 +1158,9 @@ const confirmAddToAlbum = async () => {
|
||||
:disabled="!prompt || prompt.length <= 10"
|
||||
class="!py-0.5 !px-2 !text-[10px] !h-6 !bg-violet-600/20 hover:!bg-violet-600/30 !border-violet-500/30 !text-violet-400 disabled:opacity-50"
|
||||
@click="handleImprovePrompt" />
|
||||
<Button icon="pi pi-clipboard" label="Paste"
|
||||
class="!py-0.5 !px-2 !text-[10px] !h-6 !bg-slate-800 hover:!bg-slate-700 !border-white/10 !text-slate-400"
|
||||
@click="pastePrompt" />
|
||||
<Button icon="pi pi-times" label="Clear"
|
||||
class="!py-0.5 !px-2 !text-[10px] !h-6 !bg-slate-800 hover:!bg-slate-700 !border-white/10 !text-slate-400"
|
||||
@click="clearPrompt" />
|
||||
|
||||
Reference in New Issue
Block a user