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

fix: Skeleton Padding and Width Issue #9310

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

piyushgarg-dev
Copy link
Contributor

@piyushgarg-dev piyushgarg-dev commented Jun 3, 2023

What does this PR do?

This PR fixes the padding issue of the skeleton text in the sidebar and makes the width of the skeleton adapt to the text size.

Fixes #9309
/claim #9309

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

Screenshot 2023-06-04 at 1 30 57 AM

Screen.Recording.2023-06-04.at.1.30.34.AM.mov

@vercel
Copy link

vercel bot commented Jun 3, 2023

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

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2023 9:16am

@vercel
Copy link

vercel bot commented Jun 3, 2023

@piyushgarg-dev is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added 1 points Created by SyncLinear.com Low priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work 💎 Bounty A bounty on Algora.io 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Jun 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@PeerRich
Copy link
Member

PeerRich commented Jun 4, 2023

there is still a layout shift (the icons bouncing)

@piyushgarg-dev
Copy link
Contributor Author

piyushgarg-dev commented Jun 4, 2023

@PeerRich Fixed Bounce Issue 🙌🏻

Commit: e0c8baf

Recording

Screen.Recording.2023-06-05.at.12.13.26.AM.mov

@PeerRich
Copy link
Member

PeerRich commented Jun 5, 2023

perfect! will merge today!

@@ -667,7 +668,7 @@ const NavigationItem: React.FC<{
{item.badge && item.badge}
</span>
) : (
<SkeletonText className="h-3 w-32" />
<SkeletonText style={{ width: `${item.name.length * 10}px` }} className="h-[20px]" />
Copy link
Member

Choose a reason for hiding this comment

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

that's a great idea!

@PeerRich PeerRich enabled auto-merge June 5, 2023 09:10
@PeerRich PeerRich added this pull request to the merge queue Jun 5, 2023
Merged via the queue into calcom:main with commit b7cecfb Jun 5, 2023
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 points Created by SyncLinear.com 💎 Bounty A bounty on Algora.io 🧹 Improvements Improvements to existing features. Mostly UX/UI Low priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-1858] refactor: fix skeleton for side bar
2 participants