Skip to content

Commit

Permalink
feat: improve discoverability of 'Preset' name editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortyseven committed Aug 30, 2024
1 parent 1d169b7 commit b474e23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/TabPages/Presets/PresetFilename.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
bind:value={$chatState.stateFilename}
/>
{:else}
<span on:dblclick={startEdit} title="Double-click to edit prompt filename">
<span on:click={startEdit} title="Click to edit prompt filename">
{$chatState.stateFilename}
</span>
{/if}
Expand All @@ -49,6 +49,9 @@
color: var(--accent-color-lighter3);
cursor: text;
user-select: none;
&:hover {
text-decoration: underline;
}
}
input {
padding: 0 0.2em;
Expand Down
5 changes: 4 additions & 1 deletion src/components/TabPages/Presets/Presets.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@
<!-- ----------------------------------------------------------------------- -->
<div id="Presets" class="w-full h-full text-primary">
<div class="pb-4 text-3xl">Preset: <PresetFilename /></div>
<div class="pb-4 text-3xl">
<span class="font-bold">Preset:</span>
<PresetFilename />
</div>
<div class="flex">
<Button onClick={loadPresetFromFile} title="Load preset from file">
Expand Down

0 comments on commit b474e23

Please sign in to comment.