Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce SearchBox margins for lower resolutions. #959

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

AustinMroz
Copy link
Collaborator

On lower screen widths, the SearchBox would scale itself down instead of reducing the fairly wide margins. This wastes space and reduces the usability of the search box itself by cutting off information (such as the experimental badge) on nodes with medium or longer titles

This is not without side effects, so further adjustments may be needed. Currently, the searchbox is slightly offset to the right even for normal screen width. Additionally, the adjustment is disabled for very small screen widths (<=768) such that the preview is offscreen, but the entirety of the searchbox is properly displayed down to 512.

image

@huchenlei
Copy link
Member

I just rebased dev1.3. Can you also rebase this PR to resolve conflicts?

On lower screen widths, the SearchBox would scale itself down instead of
reducing the fairly wide margins. This wastes space and has reduces the
usability of the search box contents itself by cutting off information
(such as the experimental badge) on nodes with medium or longer titles

This is not without side effects, so further adjustments may be needed.
Currently, the searchbox is slightly offset to the right even for wide
screens and the adjustments are disabled for very small screens (<=768)
such that the preview is offscreen, but the entirety of the searchbox is
properly displayed down to 512
@huchenlei huchenlei merged commit a6e350f into Comfy-Org:dev1.3 Sep 24, 2024
8 of 9 checks passed
huchenlei pushed a commit that referenced this pull request Sep 25, 2024
On lower screen widths, the SearchBox would scale itself down instead of
reducing the fairly wide margins. This wastes space and has reduces the
usability of the search box contents itself by cutting off information
(such as the experimental badge) on nodes with medium or longer titles

This is not without side effects, so further adjustments may be needed.
Currently, the searchbox is slightly offset to the right even for wide
screens and the adjustments are disabled for very small screens (<=768)
such that the preview is offscreen, but the entirety of the searchbox is
properly displayed down to 512
huchenlei pushed a commit that referenced this pull request Sep 25, 2024
On lower screen widths, the SearchBox would scale itself down instead of
reducing the fairly wide margins. This wastes space and has reduces the
usability of the search box contents itself by cutting off information
(such as the experimental badge) on nodes with medium or longer titles

This is not without side effects, so further adjustments may be needed.
Currently, the searchbox is slightly offset to the right even for wide
screens and the adjustments are disabled for very small screens (<=768)
such that the preview is offscreen, but the entirety of the searchbox is
properly displayed down to 512
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.

2 participants