Commit b1925cd
committed
feat: enhance SummaryCard with configurable description lines and loading skeletons
- Introduced a new `descriptionLines` prop to the SummaryCard component, allowing users to specify the number of lines for the description text, which applies to both the content and loading skeleton.
- Updated CSS to support dynamic line clamping based on the new prop, improving layout consistency during loading states.
- Added a fade-in animation for loading skeletons to enhance user experience during content transitions.
- Implemented new skeleton image containers with aspect ratios to prevent layout shifts, ensuring a smoother loading experience.
- Expanded Storybook examples to demonstrate the new features and their impact on layout stability.
These updates improve the flexibility and visual consistency of the SummaryCard component, particularly in loading scenarios.1 parent 90284d9 commit b1925cd
File tree
5 files changed
+766
-14
lines changed- packages/ui/src/components
- Card
- Carousel
5 files changed
+766
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
297 | 328 | | |
298 | 329 | | |
299 | 330 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments