No search bar on mobile #9732

Closed
opened 2025-12-29 21:21:43 +01:00 by adam · 5 comments
Owner

Originally created by @ChrisRecioHive on GitHub (May 23, 2024).

Originally assigned to: @tobiasge on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.2

Python Version

3.12

Steps to Reproduce

  1. Open Netbox on a mobile device

Expected Behavior

Display a search bar either at the top or in the collapsible menu

Observed Behavior

No search bar

image

Originally created by @ChrisRecioHive on GitHub (May 23, 2024). Originally assigned to: @tobiasge on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.2 ### Python Version 3.12 ### Steps to Reproduce 1. Open Netbox on a mobile device ### Expected Behavior Display a search bar either at the top or in the collapsible menu ### Observed Behavior No search bar ![image](https://github.com/netbox-community/netbox/assets/143728336/cf3459cd-f406-4b8d-a1cd-d82383aee616)
adam added the type: bugstatus: acceptedtopic: UI/UXseverity: low labels 2025-12-29 21:21:43 +01:00
adam closed this issue 2025-12-29 21:21:44 +01:00
Author
Owner

@amit177 commented on GitHub (May 24, 2024):

The reason it doesn't show up is that the container has the d-none and d-lg-flex classes, causing the search bar to show only on big screens.

Changing d-lg-flex to d-sm-flex should fix the issue, but would look weird.
Perhaps the better solution might be moving the search bar to the top of the menu when it is expanded.

@amit177 commented on GitHub (May 24, 2024): The reason it doesn't show up is that the container has the `d-none` and `d-lg-flex` classes, causing the search bar to show only on big screens. Changing `d-lg-flex` to `d-sm-flex` should fix the issue, but would look weird. Perhaps the better solution might be moving the search bar to the top of the menu when it is expanded.
Author
Owner

@ITJamie commented on GitHub (May 28, 2024):

related: there's no darkmode / lightmode switch on mobile ether in the top bar.

@ITJamie commented on GitHub (May 28, 2024): related: there's no darkmode / lightmode switch on mobile ether in the top bar.
Author
Owner

@ljarasius commented on GitHub (May 30, 2024):

I can take this one @jeremystretch

@ljarasius commented on GitHub (May 30, 2024): I can take this one @jeremystretch
Author
Owner

@remram44 commented on GitHub (Jun 12, 2024):

Is there a workaround for this? Other than tapping the URL bar and adding /search I mean.

@remram44 commented on GitHub (Jun 12, 2024): Is there a workaround for this? Other than tapping the URL bar and adding `/search` I mean.
Author
Owner

@pv2b commented on GitHub (Jun 12, 2024):

Is there a workaround for this? Other than tapping the URL bar and adding /search I mean.

You could add a Note widget to your dashboard with the following contents:

# [Search](/search)

This will make a heading-sized link with the word "search" you can click on from the dashboard to get to the search page. Heading-size so that it's a little easier to tap on mobile. Of course it'll also show up from your dashboard on desktop.

This way you can just go to the dashboard and have a search link from there. Not ideal but I think that's the best you can do without any code changes.

@pv2b commented on GitHub (Jun 12, 2024): > Is there a workaround for this? Other than tapping the URL bar and adding `/search` I mean. You could add a Note widget to your dashboard with the following contents: # [Search](/search) This will make a heading-sized link with the word "search" you can click on from the dashboard to get to the search page. Heading-size so that it's a little easier to tap on mobile. Of course it'll also show up from your dashboard on desktop. This way you can just go to the dashboard and have a search link from there. Not ideal but I think that's the best you can do without any code changes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9732