Remove padding from search-highlight #7611

Closed
opened 2025-12-29 20:26:02 +01:00 by adam · 0 comments
Owner

Originally created by @PieterL75 on GitHub (Feb 6, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.4.4

Feature type

Data model extension

Proposed functionality

The search value is highlighted in the search result.
There is a paddding 0.2em style, causing the result to be 'weird' formatted. The highlighted text is shifted down, and there is space left and right of the text.
image
image

I would like to propose to remove the 0.2em padding on the markup, to make it nice in line with the rest of the text.
image
image

Use case

Improve visual readability when searchvalues are part of a full line of text

Database changes

No response

External dependencies

No response

Originally created by @PieterL75 on GitHub (Feb 6, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.4.4 ### Feature type Data model extension ### Proposed functionality The search value is highlighted in the search result. There is a paddding 0.2em style, causing the result to be 'weird' formatted. The highlighted text is shifted down, and there is space left and right of the text. ![image](https://user-images.githubusercontent.com/74899468/217090108-1aa3cbdc-ade0-419f-b423-eb563e7ba410.png) ![image](https://user-images.githubusercontent.com/74899468/217090382-b32780b6-d7c6-4974-a8b8-0cdd1e0bc43d.png) I would like to propose to remove the 0.2em padding on the markup, to make it nice in line with the rest of the text. ![image](https://user-images.githubusercontent.com/74899468/217090231-43bf06b3-a2ed-4c96-a3e3-9da9cb1dcd56.png) ![image](https://user-images.githubusercontent.com/74899468/217090417-97162ceb-4b8b-4810-abe2-d09f71d23c3c.png) ### Use case Improve visual readability when searchvalues are part of a full line of text ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:26:02 +01:00
adam closed this issue 2025-12-29 20:26:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7611