Skip to content

Commit 7434f3e

Browse files
authored
fix(components): remove max-width on Heading (#1693)
1 parent 45812c1 commit 7434f3e

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.changeset/thirty-bags-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@launchpad-ui/components": patch
3+
---
4+
5+
Remove max-width on `Heading`
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.heading {
22
white-space: nowrap;
3-
max-width: calc(100% - var(--lp-size-32));
43
overflow: hidden;
54
text-overflow: ellipsis;
6-
position: relative;
75
}

packages/components/src/styles/Modal.module.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
& [slot='title'] {
5252
font: var(--lp-text-heading-1-semibold);
53-
flex-grow: 1;
53+
grid-column: 1;
5454
}
5555

5656
& [role='dialog']:has([slot='body']) {
@@ -61,10 +61,14 @@
6161
}
6262

6363
& [slot='header'] {
64-
display: flex;
64+
display: grid;
65+
grid-template-columns: 1fr;
6566
align-items: center;
6667
gap: var(--lp-spacing-300);
67-
flex-wrap: wrap;
68+
69+
& button[data-rac] {
70+
grid-column: 2;
71+
}
6872
}
6973

7074
& [slot='body'] {
@@ -82,7 +86,8 @@
8286
& [slot='subtitle'] {
8387
font: var(--lp-text-body-1-regular);
8488
color: var(--lp-color-text-ui-secondary);
85-
flex-basis: 100%;
89+
grid-row: 2;
90+
grid-column: 1 / span 2;
8691
}
8792
}
8893

0 commit comments

Comments
 (0)