From af5e236aa6d5e7e7dce6405cda15b37f46bfb5d1 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 13 Dec 2024 23:26:25 +0100 Subject: [PATCH] Fix styles for tabs, Restore toast --- facefusion/uis/assets/overrides.css | 38 ++++++++++++++++++++--------- requirements.txt | 2 +- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/facefusion/uis/assets/overrides.css b/facefusion/uis/assets/overrides.css index 1754a968..b3b35d10 100644 --- a/facefusion/uis/assets/overrides.css +++ b/facefusion/uis/assets/overrides.css @@ -65,35 +65,51 @@ min-height: unset; } -:root:root:root:root .tabs button:hover +:root:root:root:root .tab-wrapper { - background: unset; + padding: 0 0.625rem; } :root:root:root:root .tab-container { - height: 2.5rem; + gap: 0.5em; } -:root:root:root:root .tabitem +:root:root:root:root .tab-container button { - padding: 0.75rem 0 0 0 + background: unset; + border-bottom: 0.125rem solid; } -:root:root:root:root .tab-container:after, -:root:root:root:root .tabs button:after +:root:root:root:root .tab-container button.selected { - border-width: 0.125rem; + color: var(--primary-500) } -:root:root:root:root .tab-container:after +:root:root:root:root .toast-body { - border-color: var(--block-background-fill) + background: white; + color: var(--primary-500); + border: unset; + border-radius: unset; +} + +:root:root:root:root .dark .toast-body +{ + background: var(--neutral-900); + color: var(--primary-600); +} + +:root:root:root:root .toast-icon, +:root:root:root:root .toast-title, +:root:root:root:root .toast-text, +:root:root:root:root .toast-close +{ + color: unset; } :root:root:root:root .slider_input_container > span, :root:root:root:root .feather-upload, -:root:root:root:root .toast-wrap, :root:root:root:root footer { display: none; diff --git a/requirements.txt b/requirements.txt index 945e3006..e71bcd91 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ filetype==1.2.0 -gradio==5.7.1 +gradio==5.9.0 gradio-rangeslider==0.0.8 numpy==2.1.3 onnx==1.17.0