Skip to content

Resize fix - #741

Open
SharonStrats wants to merge 1 commit into
stagingfrom
fix/resize
Open

Resize fix#741
SharonStrats wants to merge 1 commit into
stagingfrom
fix/resize

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

Fix the issue where on mobile the data gets lost.

@SharonStrats
SharonStrats requested review from timea-solid and a lite review from Copilot August 18, 2026 08:47
@SharonStrats SharonStrats self-assigned this Aug 18, 2026
@SharonStrats
SharonStrats changed the base branch from main to staging August 18, 2026 08:47
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Aug 18, 2026

Copilot AI left a comment

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.

Pull request overview

Updates main-page UI refresh logic so that when the UI re-renders on environment/layout changes (e.g., mobile resize), it restores the correct subject URI for panes whose subject is not the current page URL—preventing state/data from being lost due to rendering the wrong subject.

Changes:

  • Read paneUri from window.history.state and use it as the GotoSubject target for profile, social, and folder panes.
  • Keep existing behavior (use document.location.href) for panes that use the page URL as their subject.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/mainPage/index.ts
Comment on lines +68 to +69
// Panes rendered for a subject other than the page URL (storage/profile/social)
// must be restored from paneUri, since byName() returns the pane without that subject.

@timea-solid timea-solid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I looked at it in attention. I believe this is a goos imporvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants