Enhance AppBar Styling and Add Minimum Window Size#41
Open
lucasbottrel wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces improvements to the
AppBarcomponent's styling for better alignment and responsiveness, and adds minimum window size constraints to the Electron application to prevent it from being resized too small.Changes
1. AppBar Styling Enhancements (
src/AppBar.tsx)items-centerto theinline-flexdiv to vertically align the icon and text.min-w-10to the icon to ensure consistent width and prevent layout shifts.lg:-ml-2,md:-ml-1) for cleaner spacing.md:pt-1withwhitespace-nowrapon the text to prevent wrapping and maintain consistent appearance.2. Minimum Window Size for Electron (
electron/index.ts)minWidthandminHeightconstants set to 300 pixels.minWidthandminHeightproperties to theBrowserWindowconfiguration to enforce a minimum window size.Purpose
Testing
AppBaricon and text are properly aligned and do not wrap or shift on various screen resolutions.electron-is-dev.Related Issues
Checklist
Screenshots
Before changes
After changes
Additional Notes
AppBar.tsxmay slightly affect the layout on larger screens; please review for consistency.