Commit d9ec5bc
[Freestyler] Update the layout and make
After moving the `.input-form` inside `main` container,
we switch between it overlaying the messages (with
`position: sticky`) or rendering it after the messages
depending on the `main`s height.
The layout now is:
* `main` now owns the scroller which makes the scroller span
to the end of the `.input-form`.
* when there is empty space between left and right edges of the messages
container and input form (main width > 688px), appearing of scrollbar
is not causing the layout to shift.
* when there isn't empty space between left and right edges of the
messages container and input form (main width <= 688px), appearing
of scrollbar causes the content to jump from right.
* when there isn't empty space between left and right edges of the
messages container, the lines of the message touch the edges.
* the edges of the message & input form is always aligned. (screenshot crbug.com/40248266#comment38)
Drive-by:
* There is now less top padding in `.input-form`.
Fixed: 372317501, 373600025
Change-Id: Id65d56bf7a424c6c3794180e475902221b8ade4e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5975457
Commit-Queue: Ergün Erdoğmuş <[email protected]>
Reviewed-by: Wolfgang Beyer <[email protected]>main own the scroller1 parent 25acf9e commit d9ec5bc
File tree
2 files changed
+93
-47
lines changed- front_end/panels/freestyler/components
2 files changed
+93
-47
lines changedLines changed: 33 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
921 | 919 | | |
922 | 920 | | |
923 | 921 | | |
| |||
927 | 925 | | |
928 | 926 | | |
929 | 927 | | |
930 | | - | |
| 928 | + | |
931 | 929 | | |
932 | 930 | | |
933 | 931 | | |
| |||
1095 | 1093 | | |
1096 | 1094 | | |
1097 | 1095 | | |
1098 | | - | |
| 1096 | + | |
1099 | 1097 | | |
1100 | 1098 | | |
1101 | 1099 | | |
| |||
1119 | 1117 | | |
1120 | 1118 | | |
1121 | 1119 | | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
1147 | 1143 | | |
1148 | 1144 | | |
1149 | 1145 | | |
| |||
1172 | 1168 | | |
1173 | 1169 | | |
1174 | 1170 | | |
1175 | | - | |
| 1171 | + | |
1176 | 1172 | | |
1177 | 1173 | | |
1178 | 1174 | | |
| |||
Lines changed: 60 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
36 | 63 | | |
37 | 64 | | |
38 | 65 | | |
| |||
102 | 129 | | |
103 | 130 | | |
104 | 131 | | |
105 | | - | |
106 | | - | |
| 132 | + | |
107 | 133 | | |
108 | | - | |
109 | | - | |
110 | 134 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
116 | 146 | | |
117 | 147 | | |
118 | 148 | | |
| |||
436 | 466 | | |
437 | 467 | | |
438 | 468 | | |
| 469 | + | |
| 470 | + | |
439 | 471 | | |
440 | 472 | | |
441 | 473 | | |
442 | 474 | | |
443 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
444 | 483 | | |
445 | 484 | | |
446 | 485 | | |
| 486 | + | |
447 | 487 | | |
448 | 488 | | |
449 | 489 | | |
450 | 490 | | |
451 | 491 | | |
452 | 492 | | |
453 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
454 | 504 | | |
455 | 505 | | |
456 | 506 | | |
| |||
0 commit comments