aboutsummaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-22 15:25:28 +0300
committerGitHub <noreply@github.com>2023-08-22 15:25:28 +0300
commit7fd0ccdffca18fbae2d579f23fb35f3a15232a99 (patch)
treeba42ade2c7489be20a6c543d94c7797d4f07a6e5 /style.css
parent0d90064e9e00612b1e065eba4e7b394e7892af34 (diff)
parented49c7c246c320562df977865476a8c43e81f1b3 (diff)
Merge pull request #12723 from MMP0/dev-resize-handle-fix
Resize handle improvements and bug fixes
Diffstat (limited to 'style.css')
-rw-r--r--style.css41
1 files changed, 32 insertions, 9 deletions
diff --git a/style.css b/style.css
index cb12e036..47876e92 100644
--- a/style.css
+++ b/style.css
@@ -142,6 +142,11 @@ div.gradio-container, .block.gradio-textbox, div.gradio-group, div.gradio-dropdo
overflow: visible !important;
}
+/* align-items isn't enough and elements may overflow in Safari. */
+.unequal-height {
+ align-content: flex-start;
+}
+
/* general styled components */
@@ -1056,14 +1061,32 @@ div.accordions > div.input-accordion.input-accordion-open{
top: 0.5em;
}
+body.resizing {
+ cursor: col-resize !important;
+}
+
+body.resizing * {
+ pointer-events: none !important;
+}
+
+body.resizing .resize-handle {
+ pointer-events: initial !important;
+}
+
+.resize-handle {
+ position: relative;
+ cursor: col-resize;
+ grid-column: 2 / 3;
+ min-width: 16px !important;
+ max-width: 16px !important;
+ height: 100%;
+}
-.resize-handle{
- cursor: col-resize;
- grid-column: 2 / 3;
- min-width: 8px !important;
- max-width: 8px !important;
- height: 100%;
- border-left: 1px dashed var(--border-color-primary);
- user-select: none;
- margin-left: 8px;
+.resize-handle::after {
+ content: '';
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 7.5px;
+ border-left: 1px dashed var(--border-color-primary);
}