dusk-network / dusk-network/explorer

explorer: Prevent search bar expansion from shifting main navigation

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fix:bug type:enhancement
Dominant language
JavaScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Description

Currently, when focusing on the search bar in the Explorer, the input field expands. As a result, the main navigation elements are pushed to the left, causing an abrupt and unpleasant shift in the layout. We should update the styling or layout logic so that focusing on the search input does not cause the navigation to move.

Steps to Reproduce
  1. Open the Explorer page.
  2. Click on the search bar at the top of the page.
  3. Observe that the search input expands and pushes the main navigation to the left.
Expected Behavior

The search bar should expand in such a way that it does not alter the position of other navigation elements. There should be no noticeable layout shifts when the search bar gains focus.

Actual Behavior

When the search bar receives focus, it expands and displaces the main navigation items, leading to an unpleasant visual shift.

https://github.com/user-attachments/assets/3bed74db-6c67-4bda-8f4f-fa448b93b259

Suggested Solution
  • Apply a fixed width and ensure adequate padding or margin around the search bar so that its focused state does not affect the layout of other elements.
  • Consider using absolute positioning or a container with fixed dimensions to handle the expanded state without shifting surrounding content.
Additional Context

This behavior can be distracting for users and may impact the overall usability of the Explorer interface. A stable, non-shifting navigation bar would provide a smoother user experience.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start on the Explorer page and reproduce the search input focus behavior described in the issue. Inspect the search bar and main navigation layout and determine where the focused state changes the input size. Done means the search bar can expand without shifting the navigation, with no noticeable layout change when it receives focus.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.