Skip to content

fix: use padding for title bar drag region#71

Open
valipuha wants to merge 1 commit into
KillYoy:masterfrom
valipuha:fix/issue-70-title-bar-margin
Open

fix: use padding for title bar drag region#71
valipuha wants to merge 1 commit into
KillYoy:masterfrom
valipuha:fix/issue-70-title-bar-margin

Conversation

@valipuha
Copy link
Copy Markdown

@valipuha valipuha commented Apr 16, 2026

Summary

Fix the desktop title bar spacing so the top 4px is applied as padding instead of margin.

Root cause

Electron window dragging only works inside the draggable element box. When the top spacing sits outside that box as margin, the top edge can stop behaving like a drag region.

Changes

  • normalize the base title bar selector to margin: 0
  • add padding-top: 4px to preserve the same visual spacing
  • keep the fix narrow to the theme’s title bar styling

Validation

  • checked out a fresh branch from latest origin/master
  • verified the diff is limited to one CSS file
  • ran git diff --check successfully
  • confirmed only the issue fix was committed

Notes

This repo does not include automated UI tests, so final confirmation should be done in the Discord desktop app on Windows/Electron.

Adjust the desktop title bar spacing so the top 4px is inside the
title bar element instead of outside it.

This preserves the visual offset while restoring a proper Electron
drag region for themed Discord windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant