-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: make toolbar responsive without narrow mode #3023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
boyam01
wants to merge
7
commits into
codex-team:next
Choose a base branch
from
boyam01:fix/remove-narrow-mode
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+251
−93
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
95f556c
fix: replace narrow mode with container queries
boyam01 1172deb
fix: preserve viewport overlays in compact editors
boyam01 bc2dcb1
fix: make toolbar layout fully responsive
boyam01 f6d70ba
Merge branch 'next' into pr/3023
neSpecc 57fd897
minor version and add a changelog
neSpecc 48ee794
Update changelog for version 2.32.0
neSpecc ee4c018
fix: refresh inline toolbar bounds after holder resize
boyam01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,3 @@ | ||
| .ce-toolbox { | ||
|
|
||
| } | ||
|
|
||
| .codex-editor--narrow .ce-toolbox { | ||
| @media (--not-mobile){ | ||
| .ce-popover { | ||
| right: 0; | ||
| left: unset; | ||
| } | ||
| } | ||
| } |
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@boyam01 please, take a look
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neSpecc Fixed in ee4c018.
Removed the persistent
UI.contentRectcache. The getter now measures the current content bounds on demand, andInlineToolbar.move()reads the result once per positioning operation. No ResizeObserver, holder-width mode, or additional resize listener is introduced.Added four regressions: LTR and RTL, each shrinking the holder from 700px to 350px and expanding it from 350px to 700px. Each case opens the toolbar first, closes it, changes only the holder width, then reopens it and checks the actual right edge against the current content column. The viewport stays fixed throughout. All four fail against 48ee794 without the fix and pass with it.
Local verification with Node 18.20.1 / Cypress 13.13.3 / headless Electron 118:
git diff --check: passed.The maintainer's version/changelog changes are preserved. This fixes positioning on reopening; it does not add live repositioning while a toolbar remains open. The new upstream CI run is separate from these local results.
Current upstream CI status: both Cypress and ESLint are
action_requiredwith zero jobs started. Could a maintainer approve these workflow runs? They have not run or passed on this new head yet.