Skip to content

fix: ensure error message text wraps#5418

Merged
ndom91 merged 2 commits into
gitbutlerapp:masterfrom
MikaelCarpenter:mc-branch-1
Nov 4, 2024
Merged

fix: ensure error message text wraps#5418
ndom91 merged 2 commits into
gitbutlerapp:masterfrom
MikaelCarpenter:mc-branch-1

Conversation

@MikaelCarpenter
Copy link
Copy Markdown
Contributor

@MikaelCarpenter MikaelCarpenter commented Nov 3, 2024

☕️ Reasoning

The error message is not fully visible when a commit signing test fails.

🧢 Changes

I moved the error message into the content slot, because that seems to be more in-line with how the InfoMessage component is used throughout the codebase. I also had to make sure the errorMessage was re-set when a new signing test was initiated. And then i added some styles to ensure that a pre in the content slot would always have text wrapping.

If y'all would prefer a different approach, just let me know!

📸 Screenshots

Before After
prod_before Screenshot 2024-11-04 at 8 24 37 AM

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 3, 2024

@MikaelCarpenter is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

</svelte:fragment>

<svelte:fragment slot="content">
{errorMessage}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's wrap this in a <pre> as well. Otherwise looking good though!

Text wasn't wrapping, but this looks a little more idiomatic for this codebase given how the InfoMessage component is used
@ndom91 ndom91 enabled auto-merge (rebase) November 4, 2024 16:42
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gitbutler-web ⬜️ Skipped (Inspect) Nov 4, 2024 4:44pm

Copy link
Copy Markdown
Contributor

@ndom91 ndom91 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ndom91 ndom91 merged commit b311bd8 into gitbutlerapp:master Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants