From 3737eafeaa1a5df97456f04b665e45e1586677a4 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 31 Mar 2023 00:48:50 -0300 Subject: [PATCH] Remove a border and allow more characters per pagination page --- css/chat.css | 4 ++++ extensions/gallery/script.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/css/chat.css b/css/chat.css index c8a9d70a..2015a80a 100644 --- a/css/chat.css +++ b/css/chat.css @@ -36,3 +36,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* { .wrap.svelte-6roggh.svelte-6roggh { max-height: 92.5%; } + +.gallery-item.svelte-13hsdno.svelte-13hsdno.svelte-13hsdno { + border: 0 !important; +} diff --git a/extensions/gallery/script.py b/extensions/gallery/script.py index e96fe40a..1954e3d0 100644 --- a/extensions/gallery/script.py +++ b/extensions/gallery/script.py @@ -92,7 +92,8 @@ def ui(): gallery = gr.Dataset(components=[gr.HTML(visible=False)], label="", samples=generate_html(), - elem_classes=["character-gallery"] + elem_classes=["character-gallery"], + samples_per_page=50 ) update.click(generate_html, [], gallery) gallery.select(select_character, None, gradio['character_menu']) \ No newline at end of file