We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6554fba commit 576b200Copy full SHA for 576b200
.changeset/ripe-bananas-cut.md
@@ -0,0 +1,5 @@
1
+---
2
+'@openproject/primer-view-components': patch
3
4
+
5
+Let Banner component react on container size instead of screen size
app/components/primer/alpha/banner.pcss
@@ -1,4 +1,8 @@
/* Banner alert */
+x-banner {
+ container-type: inline-size;
+ display: block;
+}
6
7
.Banner {
8
position: relative;
@@ -14,7 +18,7 @@
14
18
grid-template-rows: min-content;
15
19
16
20
/* `sm` breakpoint variation */
17
- @media (max-width: 543.98px) {
21
+ @container (max-width: 543.98px) {
22
grid-template-areas:
23
'visual message close'
24
'. actions actions';
0 commit comments