Skip to content

perf: resolve startup forced reflows, debounce resize layout, and optimize touch targets#141

Merged
ThisIs-Developer merged 1 commit into
mainfrom
fix-remediation-welcome-tabbar
Jun 1, 2026
Merged

perf: resolve startup forced reflows, debounce resize layout, and optimize touch targets#141
ThisIs-Developer merged 1 commit into
mainfrom
fix-remediation-welcome-tabbar

Conversation

@ThisIs-Developer

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 1, 2026 04:37
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jun 1, 2026 4:38am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve perceived startup performance and resizing behavior, while making tab controls easier to use on touch devices. It updates both the web and desktop-app mirrored assets to keep behavior consistent across targets.

Changes:

  • Adds touch-target expansion and coarse-pointer sizing tweaks for the tab UI.
  • Defers initial editor geometry measurement and debounces resize-triggered layout work.
  • Mirrors the same CSS/JS changes into desktop-app/resources/ copies.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
styles.css Expands tab menu touch hitbox and adjusts tab sizing under coarse pointers.
script.js Defers geometry measurement work and debounces resize layout updates.
desktop-app/resources/styles.css Mirrors the same touch-target and coarse-pointer tab styling for the desktop bundle.
desktop-app/resources/js/script.js Mirrors the same deferred geometry and resize debouncing logic for the desktop bundle.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread styles.css
Comment on lines +1893 to +1902
/* Touch Hitbox Expansion for Tab Menu Button */
.tab-menu-btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48px;
height: 48px;
}
Comment on lines +1893 to +1902
/* Touch Hitbox Expansion for Tab Menu Button */
.tab-menu-btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48px;
height: 48px;
}
Comment thread script.js
Comment on lines +5080 to +5085
// Defer DOM geometry measurement until after FCP/LCP critical paint path
setTimeout(function() {
initEditorGeometry();
refreshEditorWidth();
scheduleLineNumberUpdate();
}, 100);
Comment on lines +5080 to +5085
// Defer DOM geometry measurement until after FCP/LCP critical paint path
setTimeout(function() {
initEditorGeometry();
refreshEditorWidth();
scheduleLineNumberUpdate();
}, 100);
@ThisIs-Developer ThisIs-Developer merged commit 6d4d918 into main Jun 1, 2026
7 checks passed
@ThisIs-Developer ThisIs-Developer deleted the fix-remediation-welcome-tabbar branch June 1, 2026 06:48
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.

2 participants