Skip to content

Commit 8ae9cd3

Browse files
authored
fix(ui2): alert trailing items positioning (#94214)
Previously, trailing items had default padding. Now it uses a `min-height` which should be more flexible. **Before** <img width="828" alt="Screenshot 2025-06-24 at 1 17 15 PM" src="https://github.com/user-attachments/assets/8a8c73b4-ae09-428a-a037-163897557347" /> **After** <img width="822" alt="Screenshot 2025-06-24 at 2 24 43 PM" src="https://github.com/user-attachments/assets/eb435539-b68a-4e2d-8f02-65dce3249b7d" />
1 parent 0e5b391 commit 8ae9cd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

static/app/components/core/alert/index.chonk.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,23 @@ export const TrailingItems = chonkStyled('div')<ChonkAlertProps>`
129129
grid-template-rows: 100%;
130130
gap: ${p => p.theme.space.md};
131131
font-size: ${p => p.theme.fontSizeMedium};
132-
padding-top: ${p => p.theme.space.md};
133132
grid-row: 2;
134133
grid-column: 1 / -1;
135134
justify-items: start;
136-
margin-top: -2px;
135+
min-height: 28px;
136+
padding-block: ${p => p.theme.space['2xs']};
137137
138138
> svg {
139139
width: 16px;
140140
height: 16px;
141141
display: flex;
142142
align-items: center;
143+
align-self: center;
143144
}
144145
145146
@media (min-width: ${p => p.theme.breakpoints.small}) {
146-
grid-row: auto;
147-
grid-column: auto;
148-
align-items: flex-start;
147+
grid-area: auto;
148+
align-items: start;
149149
}
150150
`;
151151

0 commit comments

Comments
 (0)