Commit f5dd7b7
committed
[iris] Switch jobs view mobile/desktop with v-if instead of CSS
The CSS `sm:hidden` / `hidden sm:block` approach kept both variants in the
DOM, which made the e2e smoke tests fail: Playwright's
`page.locator("text=smoke-simple").first` was matching the hidden mobile
card link, then `to_be_visible()` failed because that link is `display:
none` at desktop widths.
Render only one variant at a time, picked via a reactive viewport-width
ref. Adds a minimal `useMediaQuery` composable. CI runs at desktop width
and now sees only the desktop table.1 parent f1dba03 commit f5dd7b7
3 files changed
Lines changed: 49 additions & 10 deletions
File tree
- lib/iris/dashboard/src
- components/controller
- composables
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
836 | 841 | | |
837 | 842 | | |
838 | 843 | | |
839 | | - | |
| 844 | + | |
840 | 845 | | |
841 | 846 | | |
842 | 847 | | |
| |||
888 | 893 | | |
889 | 894 | | |
890 | 895 | | |
891 | | - | |
| 896 | + | |
892 | 897 | | |
893 | 898 | | |
894 | 899 | | |
| |||
993 | 998 | | |
994 | 999 | | |
995 | 1000 | | |
996 | | - | |
| 1001 | + | |
997 | 1002 | | |
998 | 1003 | | |
999 | 1004 | | |
| |||
1056 | 1061 | | |
1057 | 1062 | | |
1058 | 1063 | | |
1059 | | - | |
| 1064 | + | |
1060 | 1065 | | |
1061 | 1066 | | |
1062 | 1067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| |||
550 | 557 | | |
551 | 558 | | |
552 | 559 | | |
553 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
554 | 563 | | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
| 564 | + | |
| 565 | + | |
559 | 566 | | |
560 | 567 | | |
561 | 568 | | |
| |||
637 | 644 | | |
638 | 645 | | |
639 | 646 | | |
640 | | - | |
| 647 | + | |
641 | 648 | | |
642 | 649 | | |
643 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments