Skip to content

Commit 4434d41

Browse files
authored
fix(components): tweak layout of collection items with icons and descriptions (#1762)
1 parent 5d666ae commit 4434d41

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.changeset/metal-turtles-own.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+
tweak layout of collection items with icons and descriptions

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@
8787
"onlyBuiltDependencies": [
8888
"@biomejs/biome",
8989
"@bundled-es-modules/glob",
90+
"@parcel/watcher",
9091
"@swc/core",
9192
"esbuild",
9293
"nx",
93-
"style-dictionary",
94-
"rolldown"
94+
"rolldown",
95+
"style-dictionary"
9596
],
9697
"peerDependencyRules": {
9798
"allowedVersions": {

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
& .content {
6767
grid-template-areas:
6868
'label kbd'
69-
'desc kbd';
69+
'desc -';
7070
grid-template-columns: 1fr min-content;
7171
}
7272
}
@@ -81,6 +81,11 @@
8181

8282
& [slot='description'] {
8383
grid-area: desc;
84+
word-break: break-all;
85+
}
86+
87+
&:has([data-icon]) [slot='description'] {
88+
padding-inline-start: calc(var(--lp-size-16) + var(--lp-spacing-300));
8489
}
8590

8691
& kbd {

0 commit comments

Comments
 (0)