Skip to content

fix(ui): prevent collapsed avatar clipping - #4948

Merged
Siumauricio merged 1 commit into
Dokploy:canaryfrom
azizbecha:fix/collapsed-sidebar-avatar
Aug 2, 2026
Merged

fix(ui): prevent collapsed avatar clipping#4948
Siumauricio merged 1 commit into
Dokploy:canaryfrom
azizbecha:fix/collapsed-sidebar-avatar

Conversation

@azizbecha

@azizbecha azizbecha commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

What is this PR about?

Prevents the account avatar from being clipped when the sidebar is collapsed. Collapsed padding is now assigned by button size, so default and small icon buttons keep their padding while the large account button reliably uses zero padding around its 32px avatar.

Checklist

  • Created a dedicated branch based on the latest canary branch.
  • Read the pull request guidance in CONTRIBUTING.md.
  • Tested in a running local Dokploy instance. Manual visual verification is still required because no configured development instance is available in this workspace.

Verification

  • biome check apps/dokploy/components/ui/sidebar.tsx (passes; reports one pre-existing noDocumentCookie warning at line 82)
  • git diff --check

Issues related

Closes #4946

Screenshots

Screenshot 2026-07-29 at 8 24 44 PM

Before state is described in #4946. No after screenshot is available without a configured local Dokploy instance.

Greptile Summary

This PR adjusts collapsed sidebar button padding according to button size.

  • Preserves 8px collapsed padding for default and small buttons.
  • Removes collapsed padding from large buttons so the 32px account avatar fits within its 32px container.

Confidence Score: 5/5

The PR appears safe to merge, with the size-specific padding behavior matching all current sidebar button callers.

All current callers use default, small, or large size variants; default and small preserve their previous collapsed padding while the large account button intentionally removes padding to fit its avatar.

Reviews (1): Last reviewed commit: "fix(ui): prevent collapsed avatar clippi..." | Re-trigger Greptile

@azizbecha
azizbecha requested a review from Siumauricio as a code owner July 31, 2026 23:55
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. pr-open labels Jul 31, 2026
@Siumauricio
Siumauricio merged commit 3b0bdd8 into Dokploy:canary Aug 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-open size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avatar is clipped in collapsed sidebar

2 participants