mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-30 05:42:44 -08:00
fix: cap update banner description length
This commit is contained in:
3 files changed
+14
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: patch
|
||||
---
|
||||
|
||||
Cap update banner changelog text so the update is updateable.
|
||||
@@ -89,6 +89,14 @@ export const HeaderText = style({
|
||||
gap: toRem(4),
|
||||
});
|
||||
|
||||
export const Description = style({
|
||||
display: '-webkit-box',
|
||||
WebkitLineClamp: 6,
|
||||
WebkitBoxOrient: 'vertical',
|
||||
overflow: 'hidden',
|
||||
overflowWrap: 'anywhere',
|
||||
});
|
||||
|
||||
export const Actions = style({
|
||||
display: 'flex',
|
||||
gap: config.space.S200,
|
||||
|
||||
@@ -32,7 +32,7 @@ export function GlobalBannerRenderer() {
|
||||
<div className={css.HeaderText}>
|
||||
<Text size="H4">{renderedBanner.title}</Text>
|
||||
{typeof renderedBanner.description === 'string' ? (
|
||||
<Text size="T300" priority="300">
|
||||
<Text className={css.Description} size="T300" priority="300">
|
||||
{renderedBanner.description}
|
||||
</Text>
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user