Commit c2aeaf1
Improve HTML email formatter design
- Add 800px max-width to main container for better readability
- Update container padding to 24px top, 32px left/right, 32px bottom
- Match all borders to status color (red/yellow/green) when color is set
- Adjust left padding to 28px when colored border is applied (to account for 4px thicker left border)
- Set fact list (questions/answers) left column to fixed 160px width
- Add 8px extra top and bottom margin to fact list blocks
- Add max-height (400px) and scroll to code blocks to prevent excessive vertical space
- Fix expandable block arrow to rotate 90° when opened (▶ → ▼) with smooth transition
- Update test fixtures to reflect all design changes
- Add code_block_long.html fixture to demonstrate scrollable code blocks
These changes only affect HTML email formatting and do not impact Slack (Block Kit) or Teams (Adaptive Cards) integrations.1 parent c9943a8 commit c2aeaf1
8 files changed
Lines changed: 65 additions & 20 deletions
File tree
- elementary/messages/formats
- tests/unit/messages/formats/html/fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
246 | | - | |
| 248 | + | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
253 | | - | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
300 | | - | |
301 | | - | |
| 303 | + | |
| 304 | + | |
302 | 305 | | |
303 | | - | |
| 306 | + | |
| 307 | + | |
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
308 | 312 | | |
309 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
310 | 320 | | |
311 | 321 | | |
312 | 322 | | |
313 | 323 | | |
314 | 324 | | |
315 | | - | |
| 325 | + | |
316 | 326 | | |
317 | 327 | | |
318 | 328 | | |
| |||
329 | 339 | | |
330 | 340 | | |
331 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
332 | 347 | | |
333 | | - | |
| 348 | + | |
334 | 349 | | |
335 | 350 | | |
336 | 351 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
0 commit comments