Commit a6e4e28
committed
compose: Show send message error with dismissable error banners
Different from the Figma, we use a sharp border instead of a rounded
one, because most of the time (for error messages of a single line) the
40x40 button is attached to the top/bottom/right border, and a rounded
border would leave some blank space at the corners.
We also align the button to the top when we soft wrap the error message;
centering it leaves some awkward vertical padding.
Apart from that, when the action button is not available (e.g.
_ErrorBanner that replaces the compose box in narrows without post
permission), the padding around the label is adjusted to center it.
Fixes: zulip#720
Signed-off-by: Zixuan James Li <[email protected]>1 parent 5b9bb6e commit a6e4e28
File tree
2 files changed
+43
-12
lines changed- lib/widgets
- test/widgets
2 files changed
+43
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| 1007 | + | |
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
| |||
1014 | 1015 | | |
1015 | 1016 | | |
1016 | 1017 | | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
| 1018 | + | |
1020 | 1019 | | |
1021 | 1020 | | |
1022 | 1021 | | |
| |||
1244 | 1243 | | |
1245 | 1244 | | |
1246 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1247 | 1249 | | |
1248 | 1250 | | |
1249 | 1251 | | |
1250 | 1252 | | |
1251 | 1253 | | |
| 1254 | + | |
1252 | 1255 | | |
1253 | 1256 | | |
1254 | 1257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
480 | 479 | | |
481 | 480 | | |
482 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
483 | 515 | | |
484 | 516 | | |
485 | 517 | | |
| |||
492 | 524 | | |
493 | 525 | | |
494 | 526 | | |
495 | | - | |
496 | | - | |
497 | | - | |
| 527 | + | |
498 | 528 | | |
499 | 529 | | |
500 | 530 | | |
| |||
510 | 540 | | |
511 | 541 | | |
512 | 542 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
518 | 546 | | |
519 | 547 | | |
520 | 548 | | |
| |||
0 commit comments