Skip to content

refactor(electron-titlebar): use relative units for electron-titlebar#1870

Open
spliffone wants to merge 1 commit intomainfrom
feat/electron-titlebar-relative-sizing
Open

refactor(electron-titlebar): use relative units for electron-titlebar#1870
spliffone wants to merge 1 commit intomainfrom
feat/electron-titlebar-relative-sizing

Conversation

@spliffone
Copy link
Copy Markdown
Member

@spliffone spliffone commented Apr 15, 2026

@spliffone spliffone requested review from a team as code owners April 15, 2026 05:15
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the $si-titlebar-height variable from pixels to rem units. While the conversion is accurate, it introduces a unit inconsistency with adjacent layout variables like $si-application-header-height and $si-system-banner-height. It is recommended to convert all related layout dimensions in this block to relative units to ensure consistent scaling across the application.

$si-application-header-height: 48px;

$si-titlebar-height: 36px;
$si-titlebar-height: 2.25rem;
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.

medium

The conversion of $si-titlebar-height to rem units is correct (36px / 16px = 2.25rem). However, this change introduces an inconsistency with the adjacent layout variables $si-application-header-height (48px) and $si-system-banner-height (20px) which are still using absolute pixel units. For consistent scaling across the application layout when the root font size changes, it is recommended to convert all related layout dimensions in this block to relative units.

@spliffone spliffone added the enhancement Topics that make the project better label Apr 15, 2026
@spliffone spliffone added this to the 49.x milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Topics that make the project better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant