Commit b780a3d
Fix TV render sizing for non-TV panels (#16819)
### What does it do?
Implement more reliable and flexible sizing specs via updated css,
removing explicit widths from Ext configs. The changes allow every
built-in TV type to display correctly, no matter where they are placed.
### Why is it needed?
Many TV types do not render well when moved to the various Resource
regions, overflowing the region boundaries. In some cases the inner
input (holding the current value) also obscured the right border because
of incorrect sizing.
### How to test
1. Run `grunt build` while in the `_build/templates/default` folder
2. Create each TV type (two of each if wanting to test the render to the
TV panel and to Resource regions at the same time)
3. Setup Form Customization to move each TV type to one of the Resource
regions.
4. Verify width and general sizing is consistent with other built-in
fields as well as among moved TVs
### Related issue(s)/PR(s)
Resolves #12839 and #13977
### Special Note
More work could be done to improve the styling overall (_e.g._, maybe
more space vertically between fields, fine-tuning spacing and sizing of
the descriptions/labels, etc.) and I did not focus much on the mobile
view as there are problems to fix there beyond TV rendering which are
out of scope of this fix.
---------
Co-authored-by: Jason Coward <jason@opengeek.com>1 parent 02dc122 commit b780a3d
18 files changed
Lines changed: 160 additions & 78 deletions
File tree
- _build/templates/default/sass
- manager/templates/default
- css
- element/tv/renders/input
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
203 | 281 | | |
204 | 282 | | |
205 | 283 | | |
| |||
670 | 748 | | |
671 | 749 | | |
672 | 750 | | |
673 | | - | |
| 751 | + | |
674 | 752 | | |
675 | 753 | | |
676 | 754 | | |
| |||
804 | 882 | | |
805 | 883 | | |
806 | 884 | | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | 885 | | |
823 | 886 | | |
824 | 887 | | |
| |||
1096 | 1159 | | |
1097 | 1160 | | |
1098 | 1161 | | |
1099 | | - | |
| 1162 | + | |
| 1163 | + | |
1100 | 1164 | | |
1101 | 1165 | | |
1102 | | - | |
1103 | 1166 | | |
1104 | 1167 | | |
1105 | 1168 | | |
| |||
1109 | 1172 | | |
1110 | 1173 | | |
1111 | 1174 | | |
1112 | | - | |
1113 | 1175 | | |
1114 | | - | |
1115 | 1176 | | |
1116 | 1177 | | |
1117 | | - | |
| 1178 | + | |
| 1179 | + | |
1118 | 1180 | | |
1119 | 1181 | | |
1120 | 1182 | | |
1121 | | - | |
1122 | | - | |
| 1183 | + | |
1123 | 1184 | | |
1124 | 1185 | | |
1125 | 1186 | | |
| |||
1141 | 1202 | | |
1142 | 1203 | | |
1143 | 1204 | | |
1144 | | - | |
1145 | 1205 | | |
1146 | 1206 | | |
1147 | 1207 | | |
| |||
1199 | 1259 | | |
1200 | 1260 | | |
1201 | 1261 | | |
1202 | | - | |
1203 | | - | |
| 1262 | + | |
| 1263 | + | |
1204 | 1264 | | |
1205 | 1265 | | |
1206 | 1266 | | |
1207 | | - | |
| 1267 | + | |
1208 | 1268 | | |
1209 | 1269 | | |
1210 | 1270 | | |
| |||
1876 | 1936 | | |
1877 | 1937 | | |
1878 | 1938 | | |
1879 | | - | |
| 1939 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18260 | 18260 | | |
18261 | 18261 | | |
18262 | 18262 | | |
| 18263 | + | |
| 18264 | + | |
| 18265 | + | |
| 18266 | + | |
18263 | 18267 | | |
18264 | 18268 | | |
| 18269 | + | |
18265 | 18270 | | |
| 18271 | + | |
18266 | 18272 | | |
18267 | 18273 | | |
18268 | 18274 | | |
| |||
20942 | 20948 | | |
20943 | 20949 | | |
20944 | 20950 | | |
20945 | | - | |
| 20951 | + | |
| 20952 | + | |
| 20953 | + | |
| 20954 | + | |
| 20955 | + | |
| 20956 | + | |
| 20957 | + | |
| 20958 | + | |
| 20959 | + | |
| 20960 | + | |
| 20961 | + | |
| 20962 | + | |
| 20963 | + | |
| 20964 | + | |
| 20965 | + | |
| 20966 | + | |
| 20967 | + | |
| 20968 | + | |
| 20969 | + | |
| 20970 | + | |
| 20971 | + | |
| 20972 | + | |
| 20973 | + | |
| 20974 | + | |
| 20975 | + | |
| 20976 | + | |
| 20977 | + | |
| 20978 | + | |
| 20979 | + | |
| 20980 | + | |
| 20981 | + | |
| 20982 | + | |
| 20983 | + | |
| 20984 | + | |
| 20985 | + | |
| 20986 | + | |
| 20987 | + | |
| 20988 | + | |
| 20989 | + | |
| 20990 | + | |
| 20991 | + | |
| 20992 | + | |
| 20993 | + | |
| 20994 | + | |
| 20995 | + | |
| 20996 | + | |
| 20997 | + | |
| 20998 | + | |
| 20999 | + | |
| 21000 | + | |
20946 | 21001 | | |
20947 | 21002 | | |
20948 | 21003 | | |
| |||
21341 | 21396 | | |
21342 | 21397 | | |
21343 | 21398 | | |
21344 | | - | |
| 21399 | + | |
21345 | 21400 | | |
21346 | 21401 | | |
21347 | 21402 | | |
| |||
21449 | 21504 | | |
21450 | 21505 | | |
21451 | 21506 | | |
21452 | | - | |
21453 | | - | |
21454 | | - | |
21455 | | - | |
21456 | | - | |
21457 | | - | |
21458 | | - | |
21459 | | - | |
21460 | | - | |
21461 | | - | |
21462 | | - | |
21463 | 21507 | | |
21464 | 21508 | | |
21465 | 21509 | | |
| |||
22208 | 22252 | | |
22209 | 22253 | | |
22210 | 22254 | | |
22211 | | - | |
| 22255 | + | |
22212 | 22256 | | |
22213 | 22257 | | |
22214 | 22258 | | |
22215 | 22259 | | |
22216 | | - | |
22217 | | - | |
22218 | 22260 | | |
22219 | 22261 | | |
22220 | 22262 | | |
| |||
22226 | 22268 | | |
22227 | 22269 | | |
22228 | 22270 | | |
22229 | | - | |
22230 | | - | |
22231 | 22271 | | |
22232 | 22272 | | |
22233 | | - | |
22234 | | - | |
22235 | 22273 | | |
22236 | 22274 | | |
22237 | | - | |
22238 | 22275 | | |
| 22276 | + | |
22239 | 22277 | | |
22240 | 22278 | | |
22241 | | - | |
22242 | | - | |
| 22279 | + | |
22243 | 22280 | | |
22244 | 22281 | | |
22245 | 22282 | | |
| |||
22264 | 22301 | | |
22265 | 22302 | | |
22266 | 22303 | | |
22267 | | - | |
22268 | | - | |
22269 | 22304 | | |
22270 | 22305 | | |
22271 | 22306 | | |
| |||
22312 | 22347 | | |
22313 | 22348 | | |
22314 | 22349 | | |
22315 | | - | |
| 22350 | + | |
22316 | 22351 | | |
22317 | | - | |
22318 | 22352 | | |
22319 | 22353 | | |
22320 | 22354 | | |
22321 | | - | |
22322 | | - | |
| 22355 | + | |
22323 | 22356 | | |
22324 | 22357 | | |
22325 | 22358 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
0 commit comments