Skip to content

Conversation

@Light2Dark
Copy link
Contributor

📝 Summary

the copy button was taking up unecessary padding, because the styles were applied to the icon, not the button.

before:
CleanShot 2025-10-31 at 00 25 34

after:
CleanShot 2025-10-31 at 00 27 36

🔍 Description of Changes

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

@Light2Dark Light2Dark requested a review from manzt as a code owner October 30, 2025 16:28
@vercel
Copy link

vercel bot commented Oct 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Nov 1, 2025 4:56pm

// as useState doesn't reinitialize on re-renders
useEffect(() => {
setLocalValue(props.value);
}, [props.value]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we revert this or did this fix a bug? because last time we did a cleanup like this, it broke things unexpectedly

@mscolnick mscolnick merged commit a46d5fa into main Nov 2, 2025
25 of 26 checks passed
@mscolnick mscolnick deleted the sham/fix-css-copy-button-code-editor branch November 2, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants