Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
35b5d5ba
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "ea257636ee82bd8b7f1af2087e8f579ec1356c63"
Commit
35b5d5ba
authored
May 01, 2024
by
Timothy J. Baek
Browse files
refac: suggestions scroll snap
parent
84cd1b8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/lib/components/chat/MessageInput/Suggestions.svelte
src/lib/components/chat/MessageInput/Suggestions.svelte
+3
-2
No files found.
src/lib/components/chat/MessageInput/Suggestions.svelte
View file @
35b5d5ba
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
{/if}
{/if}
<div class="w-full">
<div class="w-full">
<div class="relative w-full flex gap-2 snap-x overflow-x-auto tabs">
<div class="relative w-full flex gap-2 snap-x
snap-mandatory
overflow-x-auto tabs">
{#each prompts as prompt, promptIdx}
{#each prompts as prompt, promptIdx}
<div class="shrink-0">
<div class="
snap-center
shrink-0">
<button
<button
class="flex flex-col flex-1 shrink-0 w-64 justify-between h-36 p-5 px-6 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 rounded-3xl transition group"
class="flex flex-col flex-1 shrink-0 w-64 justify-between h-36 p-5 px-6 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 rounded-3xl transition group"
on:click={() => {
on:click={() => {
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
</button>
</button>
</div>
</div>
{/each}
{/each}
<!-- <div class="snap-center shrink-0">
<!-- <div class="snap-center shrink-0">
<img
<img
class="shrink-0 w-80 h-40 rounded-lg shadow-xl bg-white"
class="shrink-0 w-80 h-40 rounded-lg shadow-xl bg-white"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment