Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website fixes #5237

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make Button Label truncatable
  • Loading branch information
Duncid committed May 23, 2024
commit 6f1936a38180a0f6f456b9a5fed9bb78e17cbb0e
4 changes: 2 additions & 2 deletions sparkle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sparkle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dust-tt/sparkle",
"version": "0.2.152",
"version": "0.2.153",
"scripts": {
"build": "rm -rf dist && rollup -c",
"build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
Expand Down
4 changes: 3 additions & 1 deletion sparkle/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ export function Button({
{icon && <Icon visual={icon} size={size as IconProps["size"]} />}
{avatar && <Avatar size={size} visual={avatar} isRounded />}
{labelVisible ? (
<div className={finalContainerClasses}>{label}</div>
<div className={classNames("truncate", finalContainerClasses)}>
{label}
</div>
) : null}
{type === "menu" && (
<Icon
Expand Down
Loading