Skip to content

feat(browser): Dioxus Tabs#412

Merged
nicoburns merged 1 commit intoDioxusLabs:mainfrom
tonybierman:browser-dioxus-tabs
May 1, 2026
Merged

feat(browser): Dioxus Tabs#412
nicoburns merged 1 commit intoDioxusLabs:mainfrom
tonybierman:browser-dioxus-tabs

Conversation

@tonybierman
Copy link
Copy Markdown
Contributor

Summary

  • Replace inline about:newtab HTML with a Dioxus-rendered AboutPage component.
  • Extract URL/nav helpers from toolbar.rs into a new nav module.

Stubs

Settings, History, and Bookmarks are wired through the menu to
Dioxus tabs and currently open a stub placeholder.

Replace inline about:newtab HTML with a Dioxus-rendered AboutPage
component, and extract URL/nav helpers from toolbar.rs into a new
nav module. Settings, History, and Bookmarks are wired through the
menu to Dioxus tabs and currently open a stub placeholder.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

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

I've noted a few quibbles in comments, but overall this looks good :)

Comment thread apps/browser/src/tab.rs
Comment on lines +156 to +158
if let Some(page) = about() {
*tab.title().write_unchecked() = page.title().to_string();
}
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.

This could probably go directly in the use_memo above. But this is also fine.

Comment thread apps/browser/src/tab.rs
web-view {
key: "{id}",
class: "tab-content",
style: visibility,
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.

Note that you can do display: "block" instead of style: "display: block" if you want to.

}

impl AboutPage {
pub fn from_url(url: &Url) -> Option<Self> {
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.

Nit: try_from_url would probably be a more idiomatic name as this is fallible and returns option.

@nicoburns nicoburns merged commit 93fde14 into DioxusLabs:main May 1, 2026
15 checks passed
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