Skip to content

Commit

Permalink
small visual changes, slide transition = less jarring?
Browse files Browse the repository at this point in the history
  • Loading branch information
nvms committed Dec 7, 2023
1 parent bf745b5 commit dd81c02
Show file tree
Hide file tree
Showing 8 changed files with 4,137 additions and 4,109 deletions.
2 changes: 1 addition & 1 deletion extension/dist/style.css

Large diffs are not rendered by default.

8,151 changes: 4,089 additions & 4,062 deletions extension/dist/webview.es.js

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions extension/dist/webview.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webview/src/components/ExtensionSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
};
</script>

<div class="flex-1 bg-neutral-500/10 space-y-6 p-4">
<div class="flex-1 bg-gray-500/5 space-y-6 p-4">
<div class="space-y-2">
<h2 class="text-lg font-semibold">Restore defaults</h2>
<p>
Expand Down
2 changes: 1 addition & 1 deletion webview/src/components/ModeSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
};
</script>

<div class="flex flex-1 bg-neutral-500/10">
<div class="flex flex-1 bg-gray-500/5">
<div class="flex-0 border-r border-panel overflow-y-auto">
<div class="font-semibold px-4 pt-2 select-none">Modes</div>
<div class="flex flex-col">
Expand Down
9 changes: 5 additions & 4 deletions webview/src/components/ModeView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import ModeSettings from "./ModeSettings.svelte";
import ExtensionSettings from "./ExtensionSettings.svelte";
import GrowingTextarea from "./GrowingTextarea.svelte";
import { slide, fade } from "svelte/transition";
export let showPresetSettings = false;
export let showPromptSettings = false;
Expand Down Expand Up @@ -199,22 +200,22 @@

<div class="flex-1 flex flex-col overflow-y-auto">
{#if showPresetSettings}
<div class="flex-0 border-b border-panel">
<div class="flex-0 border-b border-panel" transition:slide={{ duration: 150 }}>
<PresetSettings />
</div>
{/if}
{#if showPromptSettings}
<div class="flex-0 border-b border-panel">
<div class="flex-0 border-b border-panel" transition:slide={{ duration: 150 }}>
<PromptSettings on:getPrompts />
</div>
{/if}
{#if showModeSettings}
<div class="flex-0 border-b border-panel">
<div class="flex-0 border-b border-panel" transition:slide={{ duration: 150 }}>
<ModeSettings on:getPrompts />
</div>
{/if}
{#if showExtensionSettings}
<div class="flex-0 border-b border-panel">
<div class="flex-0 border-b border-panel" transition:slide={{ duration: 150 }}>
<ExtensionSettings on:getPrompts />
</div>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion webview/src/components/PresetSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
});
</script>

<div class="flex flex-1 bg-neutral-500/10">
<div class="flex flex-1 bg-gray-500/5">
<div class="flex-0 border-r border-panel overflow-x-hidden overflow-y-auto">
<div class="font-semibold px-4 pt-2 select-none">Presets</div>
<div class="flex flex-col">
Expand Down
2 changes: 1 addition & 1 deletion webview/src/components/PromptSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
};
</script>

<div class="flex flex-1 bg-neutral-500/10">
<div class="flex flex-1 bg-gray-500/5">
<div class="flex-0 border-r border-panel overflow-y-auto">
<div class="font-semibold px-4 pt-2 select-none">Prompts</div>
<div class="flex flex-col">
Expand Down

0 comments on commit dd81c02

Please sign in to comment.