Skip to content

Commit 92ab586

Browse files
sabrina-bongiovannipnicolli
authored andcommitted
fix: added max-width attribute to row to fit elements within page when zoomed in (#773)
1 parent bf5a9a6 commit 92ab586

File tree

1 file changed

+38
-32
lines changed

1 file changed

+38
-32
lines changed

src/theme/ItaliaTheme/Blocks/_form.scss

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
11
.public-ui {
22
.block.form {
3-
@media (max-width: #{map-get($grid-breakpoints, md)}) {
4-
.form-group {
5-
display: flex;
6-
flex-direction: column;
7-
8-
label {
9-
position: relative;
10-
order: 1;
11-
font-size: 0.777rem;
12-
line-height: 1.375rem;
13-
transform: none;
14-
transform: none;
15-
white-space: normal;
16-
17-
&.active {
3+
.row {
4+
max-width: 100%;
5+
6+
@media (max-width: #{map-get($grid-breakpoints, md)}) {
7+
.form-group {
8+
display: flex;
9+
flex-direction: column;
10+
max-width: 100%;
11+
12+
label {
13+
position: relative;
14+
order: 1;
1815
font-size: 0.777rem;
16+
line-height: 1.375rem;
17+
transform: none;
1918
transform: none;
19+
white-space: normal;
20+
21+
&.active {
22+
font-size: 0.777rem;
23+
transform: none;
24+
}
2025
}
21-
}
2226

23-
input,
24-
textarea,
25-
.form-input-file {
26-
order: 2;
27-
}
27+
input,
28+
textarea,
29+
.form-input-file {
30+
order: 2;
31+
}
2832

29-
input[type='date'] ~ label {
30-
font-size: 0.777rem;
31-
transform: none;
32-
}
33+
input[type='date'] ~ label {
34+
font-size: 0.777rem;
35+
transform: none;
36+
}
3337

34-
small.form-text {
35-
position: relative;
36-
order: 3;
38+
small.form-text {
39+
position: relative;
40+
order: 3;
41+
}
3742
}
38-
}
3943

40-
.form-input-file {
41-
.dropzone-placeholder {
42-
margin-top: 0;
44+
.form-input-file {
45+
.dropzone-placeholder {
46+
margin-top: 0;
47+
}
4348
}
4449
}
4550
}
@@ -65,6 +70,7 @@
6570
&,
6671
.volto-subblocks-wrapper,
6772
.form-field {
73+
max-width: 100%;
6874
.single-block {
6975
.dragsubblock {
7076
top: 0.3rem;

0 commit comments

Comments
 (0)