wusong8899 / move-session-dropdown
Move user session dropdown to the main navigation bar for better accessibility
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:TypeScript
Type:flarum-extension
Requires
- php: ^8.0
- flarum/core: ^1.0
This package is auto-updated.
Last update: 2025-08-21 23:16:40 UTC
README
A Flarum extension that moves the user session dropdown from the secondary navigation area to the main navigation bar for better accessibility and user experience.
Features
- Moves SessionDropdown to the main navigation bar (
#app-navigation
) - Automatically hides the original SessionDropdown location
- Responsive design - hides username on mobile to save space
- Only shows when user is logged in
- Uses flexbox layout for proper positioning
Installation
- Copy this extension to your Flarum's
packages/
directory - Run
composer install
in the extension directory - Enable the extension in your Flarum admin panel
Development
cd js pnpm install pnpm run build # Build for production pnpm run dev:forum # Development build with watch mode
Technical Details
- Built with Vite + TypeScript
- Uses Mithril.js JSX syntax
- LESS preprocessing for styles
- Extends Flarum's Navigation component
- Modern build system following Flarum extension patterns