diff --git a/README.md b/README.md index 97f26ccb..169c894b 100644 --- a/README.md +++ b/README.md @@ -240,4 +240,4 @@ Before reporting a bug, make sure that you have: - Gradio dropdown menu refresh button, code for reloading the interface: https://github.com/AUTOMATIC1111/stable-diffusion-webui - Verbose preset: Anonymous 4chan user. - NovelAI and KoboldAI presets: https://github.com/KoboldAI/KoboldAI-Client/wiki/Settings-Presets -- Pygmalion preset, code for early stopping in chat mode, code for some of the sliders, --chat mode colors: https://github.com/PygmalionAI/gradio-ui/ +- Code for early stopping in chat mode, code for some of the sliders: https://github.com/PygmalionAI/gradio-ui/ diff --git a/extensions/gallery/script.py b/extensions/gallery/script.py index fbf23bc9..c17d69ee 100644 --- a/extensions/gallery/script.py +++ b/extensions/gallery/script.py @@ -2,19 +2,29 @@ from pathlib import Path import gradio as gr +from modules.chat import load_character from modules.html_generator import get_image_cache +from modules.shared import gradio, settings -def generate_html(): +def generate_css(): css = """ - .character-gallery { + .character-gallery > .gallery { margin: 1rem 0; - display: grid; + display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-column-gap: 0.4rem; grid-row-gap: 1.2rem; } + .character-gallery > .label { + display: none !important; + } + + .character-gallery button.gallery-item { + display: contents; + } + .character-container { cursor: pointer; text-align: center; @@ -45,14 +55,16 @@ def generate_html(): overflow-wrap: anywhere; } """ + return css - container_html = f'