Skip to content

Moved and refactored the burger menue for the sidebar - solves #110#112

Merged
ImTheKai merged 1 commit into
hackorum-dev:mainfrom
ImTheKai:main
Jun 8, 2026
Merged

Moved and refactored the burger menue for the sidebar - solves #110#112
ImTheKai merged 1 commit into
hackorum-dev:mainfrom
ImTheKai:main

Conversation

@ImTheKai

@ImTheKai ImTheKai commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

The header burger now uses sidebar#toggleMobile, which already correctly routes to collapse()/expand() on desktop and the slide-in drawer on mobile.

Unified view, always at the same spot and works from all pages now.

Resolves #110

Signed-off-by: Kai Wagner <kai.wagner@percona.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR resolves issue #110 by consolidating the sidebar toggle control into the global header navigation: the header “burger” now calls sidebar#toggleMobile, which correctly toggles collapse/expand on desktop and opens/closes the drawer on mobile. As part of that consolidation, the per-page/sidebar-local burger buttons and their associated styling are removed.

Changes:

  • Removed the sidebar burger buttons previously embedded in Topics index/show views.
  • Removed the sidebar-local “toggle bar” from the sidebar layout, making the header nav burger the single toggle entry point.
  • Updated styling so the header nav burger is shown whenever a sidebar is present, and removed the now-unused sidebar burger CSS.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
app/views/topics/show.html.slim Removes the topic-header embedded sidebar burger button.
app/views/topics/index.html.slim Removes the topics table-header embedded sidebar burger button.
app/views/layouts/application.html.slim Removes the sidebar-local toggle bar/button from the sidebar container.
app/assets/stylesheets/layouts/topic-view.css Removes collapsed-sidebar display rule for the removed topic-view burger button.
app/assets/stylesheets/components/topics.css Removes collapsed-sidebar display rule for the removed topics-table burger button.
app/assets/stylesheets/components/sidebar.css Removes styling for the removed sidebar burger button and toggle bar container.
app/assets/stylesheets/components/navigation.css Ensures the header nav burger displays whenever body.has-sidebar is present (not only in the mobile media query).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ImTheKai ImTheKai merged commit ee7fc75 into hackorum-dev:main Jun 8, 2026
5 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.

Missing sidebar toggle button

3 participants