Skip to content

Commit 99e364e

Browse files
committed
fix(QEditor): (backport from Qv2) limit width in fullscreen mode
1 parent 2520b4d commit 99e364e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

ui/src/components/editor/QEditor.sass

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
&.disabled
77
border-style: dashed
88

9-
> div:first-child, &__toolbars-container, &__toolbars-container > div:first-child
9+
> div:first-child,
10+
&__toolbars-container,
11+
&__toolbars-container > div:first-child
1012
border-top-left-radius: inherit
1113
border-top-right-radius: inherit
1214

@@ -17,14 +19,18 @@
1719
border-bottom-left-radius: inherit
1820
border-bottom-right-radius: inherit
1921
overflow: auto
22+
max-width: 100%
23+
2024
pre
2125
white-space: pre-wrap
26+
2227
hr
2328
border: 0
2429
outline: 0
2530
margin: 1px
2631
height: 1px
2732
background: $editor-hr-color
33+
2834
&:empty:not(:focus):before
2935
content: attr(placeholder)
3036
opacity: .7
@@ -33,6 +39,9 @@
3339
border-bottom: 1px solid $editor-border-color
3440
min-height: 32px
3541

42+
&__toolbars-container
43+
max-width: 100%
44+
3645
.q-btn
3746
margin: $editor-button-gutter
3847

ui/src/components/editor/QEditor.styl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@
1717
border-bottom-left-radius: inherit
1818
border-bottom-right-radius: inherit
1919
overflow: auto
20+
max-width: 100%
21+
2022
pre
2123
white-space: pre-wrap
24+
2225
hr
2326
border: 0
2427
outline: 0
2528
margin: 1px
2629
height: 1px
2730
background: $editor-hr-color
31+
2832
&:empty:not(:focus):before
2933
content: attr(placeholder)
3034
opacity: .7
@@ -33,6 +37,9 @@
3337
border-bottom: 1px solid $editor-border-color
3438
min-height: 32px
3539

40+
&__toolbars-container
41+
max-width: 100%
42+
3643
.q-btn
3744
margin: $editor-button-gutter
3845

0 commit comments

Comments
 (0)