add symbol for clear button and simplify roll_col css selector

This commit is contained in:
papuSpartan 2022-10-19 19:06:14 -05:00
parent 604620a7f0
commit 8b74b9aa9a
2 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,7 @@ folder_symbol = '\U0001f4c2' # 📂
refresh_symbol = '\U0001f504' # 🔄
save_style_symbol = '\U0001f4be' # 💾
apply_style_symbol = '\U0001f4cb' # 📋
trash_prompt_symbol = '\U0001F5D1' # 🗑🗑🗑
def plaintext_to_html(text):
@ -498,6 +499,7 @@ def create_toprow(is_img2img):
paste = gr.Button(value=paste_symbol, elem_id="paste")
save_style = gr.Button(value=save_style_symbol, elem_id="style_create")
prompt_style_apply = gr.Button(value=apply_style_symbol, elem_id="style_apply")
trash_prompt = gr.Button(value=trash_prompt_symbol, elem_id="trash_prompt")
token_counter = gr.HTML(value="<span></span>", elem_id=f"{id_part}_token_counter")
token_button = gr.Button(visible=False, elem_id=f"{id_part}_token_button")

View File

@ -114,7 +114,7 @@
padding: 0.4em 0;
}
#roll, #paste, #style_create, #style_apply{
#roll_col > button {
min-width: 2em;
min-height: 2em;
max-width: 2em;