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
9b2f2054
Commit
9b2f2054
authored
Mar 21, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ctrl+up/down attention edit
fix dropdown obscured by live preview stylistic changes
parent
9f0da9f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
javascript/edit-attention.js
javascript/edit-attention.js
+1
-1
modules/ui.py
modules/ui.py
+2
-2
style.css
style.css
+11
-1
No files found.
javascript/edit-attention.js
View file @
9b2f2054
function
keyupEditAttention
(
event
){
function
keyupEditAttention
(
event
){
let
target
=
event
.
originalTarget
||
event
.
composedPath
()[
0
];
let
target
=
event
.
originalTarget
||
event
.
composedPath
()[
0
];
if
(
!
target
.
matches
(
"
[id*='_toprow'] textarea.gr-text-input[placeholder]
"
))
return
;
if
(
!
target
.
matches
(
"
[id*='_toprow'] [id*='_prompt'] textarea
"
))
return
;
if
(
!
(
event
.
metaKey
||
event
.
ctrlKey
))
return
;
if
(
!
(
event
.
metaKey
||
event
.
ctrlKey
))
return
;
let
isPlus
=
event
.
key
==
"
ArrowUp
"
let
isPlus
=
event
.
key
==
"
ArrowUp
"
...
...
modules/ui.py
View file @
9b2f2054
...
@@ -587,7 +587,7 @@ def create_ui():
...
@@ -587,7 +587,7 @@ def create_ui():
txt2img_prompt
.
submit
(
**
txt2img_args
)
txt2img_prompt
.
submit
(
**
txt2img_args
)
submit
.
click
(
**
txt2img_args
)
submit
.
click
(
**
txt2img_args
)
res_switch_btn
.
click
(
lambda
w
,
h
:
(
h
,
w
),
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
])
res_switch_btn
.
click
(
lambda
w
,
h
:
(
h
,
w
),
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
]
,
show_progress
=
False
)
txt_prompt_img
.
change
(
txt_prompt_img
.
change
(
fn
=
modules
.
images
.
image_data
,
fn
=
modules
.
images
.
image_data
,
...
@@ -907,7 +907,7 @@ def create_ui():
...
@@ -907,7 +907,7 @@ def create_ui():
img2img_prompt
.
submit
(
**
img2img_args
)
img2img_prompt
.
submit
(
**
img2img_args
)
submit
.
click
(
**
img2img_args
)
submit
.
click
(
**
img2img_args
)
res_switch_btn
.
click
(
lambda
w
,
h
:
(
h
,
w
),
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
])
res_switch_btn
.
click
(
lambda
w
,
h
:
(
h
,
w
),
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
]
,
show_progress
=
False
)
img2img_interrogate
.
click
(
img2img_interrogate
.
click
(
fn
=
lambda
*
args
:
process_interrogate
(
interrogate
,
*
args
),
fn
=
lambda
*
args
:
process_interrogate
(
interrogate
,
*
args
),
...
...
style.css
View file @
9b2f2054
/* general gradio fixes */
/* general gradio fixes */
:root
{
:root
,
.dark
{
--checkbox-label-gap
:
0.25em
0.1em
;
--checkbox-label-gap
:
0.25em
0.1em
;
--section-header-text-size
:
12pt
;
--section-header-text-size
:
12pt
;
--block-background-fill
:
transparent
;
}
}
.block.padded
{
.block.padded
{
...
@@ -54,6 +55,7 @@ div.compact{
...
@@ -54,6 +55,7 @@ div.compact{
.gradio-dropdown
ul
.options
{
.gradio-dropdown
ul
.options
{
max-height
:
35em
;
max-height
:
35em
;
z-index
:
3000
;
}
}
.gradio-dropdown
label
span
:not
(
.has-info
)
{
.gradio-dropdown
label
span
:not
(
.has-info
)
{
...
@@ -72,6 +74,13 @@ div.compact{
...
@@ -72,6 +74,13 @@ div.compact{
margin
:
0.75em
1.5em
0
0
;
margin
:
0.75em
1.5em
0
0
;
}
}
.gradio-html
div
.wrap
{
height
:
100%
;
}
div
.gradio-html.min
{
min-height
:
0
;
}
/* general styled components */
/* general styled components */
.gradio-button.tool
{
.gradio-button.tool
{
...
@@ -103,6 +112,7 @@ div.compact{
...
@@ -103,6 +112,7 @@ div.compact{
min-width
:
0
!important
;
min-width
:
0
!important
;
width
:
auto
;
width
:
auto
;
z-index
:
100
;
z-index
:
100
;
top
:
-0.75em
;
}
}
.block.token-counter
span
{
.block.token-counter
span
{
...
...
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