Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
d3b188c8
Commit
d3b188c8
authored
Mar 25, 2023
by
space-nuko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix padding on accordion/dropdown list elements
parent
a0d07fb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
modules/scripts.py
modules/scripts.py
+12
-0
style.css
style.css
+14
-1
No files found.
modules/scripts.py
View file @
d3b188c8
...
...
@@ -553,3 +553,15 @@ def IOComponent_init(self, *args, **kwargs):
original_IOComponent_init
=
gr
.
components
.
IOComponent
.
__init__
gr
.
components
.
IOComponent
.
__init__
=
IOComponent_init
def
BlockContext_init
(
self
,
*
args
,
**
kwargs
):
res
=
original_BlockContext_init
(
self
,
*
args
,
**
kwargs
)
add_classes_to_gradio_component
(
self
)
return
res
original_BlockContext_init
=
gr
.
blocks
.
BlockContext
.
__init__
gr
.
blocks
.
BlockContext
.
__init__
=
BlockContext_init
style.css
View file @
d3b188c8
...
...
@@ -7,7 +7,7 @@
--block-background-fill
:
transparent
;
}
.block.padded
{
.block.padded
:not
(
.gradio-accordion
)
{
padding
:
0
!important
;
}
...
...
@@ -65,6 +65,19 @@ div.compact{
margin-bottom
:
0
;
}
.gradio-dropdown
ul
.options
{
max-height
:
35em
;
z-index
:
3000
;
}
.gradio-dropdown
ul
.options
li
.item
{
padding
:
0.05em
0
;
}
.gradio-dropdown
ul
.options
li
.item.selected
{
background-color
:
var
(
--secondary-500
);
}
.gradio-dropdown
div
.wrap.wrap.wrap.wrap
{
box-shadow
:
0
1px
2px
0
rgba
(
0
,
0
,
0
,
0.05
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment