Skip to content

refactor: Consolidate banner/button logic into Banner class#41

Open
dtkav wants to merge 1 commit intomainfrom
refactor/banner_class
Open

refactor: Consolidate banner/button logic into Banner class#41
dtkav wants to merge 1 commit intomainfrom
refactor/banner_class

Conversation

@dtkav
Copy link
Member

@dtkav dtkav commented Jan 30, 2026

  • Banner now automatically detects mobile Obsidian ≥1.11.0 and renders as a header button (short text) vs traditional banner (long text)
  • Added BannerText type supporting string | { short, long }
  • Removed setLoginIcon/clearLoginButton from LoggedOutView
  • Removed setMergeButton/clearMergeButton from LiveView
  • Removed font-weight bold and text-shadow from desktop banner

Note: this requires cross-device testing

@dtkav dtkav requested a review from Cfeusier January 30, 2026 23:49
- Banner now automatically detects mobile Obsidian ≥1.11.0 and renders
  as a header button (short text) vs traditional banner (long text)
- Added BannerText type supporting string | { short, long }
- Removed setLoginIcon/clearLoginButton from LoggedOutView
- Removed setMergeButton/clearMergeButton from LiveView
- Removed font-weight bold and text-shadow from desktop banner
@dtkav dtkav force-pushed the refactor/banner_class branch from dbde61d to a3b9d3a Compare February 4, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants