Remove a border and allow more characters per pagination page

This commit is contained in:
oobabooga 2023-03-31 00:48:50 -03:00
parent f9940b79dc
commit 3737eafeaa
2 changed files with 6 additions and 1 deletions

View File

@ -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;
}

View File

@ -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'])