-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Dashboard: Slider overlapping with right input field #71282
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com>
JoaoSilvaGrafana
approved these changes
Jul 10, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
3 tasks
grafana-delivery-bot bot
pushed a commit
that referenced
this pull request
Jul 10, 2023
* fix(slider): input field left margin * fix(slider): use theme spacing variable Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> --------- Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> (cherry picked from commit 4206a4d)
polibb
pushed a commit
that referenced
this pull request
Jul 14, 2023
* fix(slider): input field left margin * fix(slider): use theme spacing variable Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> --------- Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
add to changelog
area/dashboard
area/frontend
backport v10.0.x
internal
for issues made by grafanistas
type/bug
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this feature?
There is a slider component on the field config right-side component. The slider's top range number is overlapping with the right-standing input field.
Current view:
![Screenshot 2023-07-07 at 17 10 33](https://private-user-images.githubusercontent.com/1418924/251783885-6f72da33-be05-45e9-bc4b-51a52430842f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxODI4NDQsIm5iZiI6MTcyMjE4MjU0NCwicGF0aCI6Ii8xNDE4OTI0LzI1MTc4Mzg4NS02ZjcyZGEzMy1iZTA1LTQ1ZTktYmM0Yi01MWE1MjQzMDg0MmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjhUMTYwMjI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWUwYzIyZWZiODdhMDE1OTZjZWJjOTM3ZTBiMzgyMzJjYjIxMGNmM2QzMTA4MTk3MzUzYjdjNDY4MWY2Njc3YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.1X2_NCn6TJ6E50hyfSvjXOmIPuInkyLgs2Kq6bbuXw8)
Possible solution (align number by the right edge of slider):
![Screenshot 2023-07-07 at 17 13 24](https://private-user-images.githubusercontent.com/1418924/251784754-5461ba3f-4e07-4b58-ae36-befaa6dee049.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxODI4NDQsIm5iZiI6MTcyMjE4MjU0NCwicGF0aCI6Ii8xNDE4OTI0LzI1MTc4NDc1NC01NDYxYmEzZi00ZTA3LTRiNTgtYWUzNi1iZWZhYTZkZWUwNDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjhUMTYwMjI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTVmZmM1OTQ0OTk4ZGRkOGM1NzhiZjIzYmU1ZGU3MWMyNzNmY2RmZTFhNTE2YzNhMzlkZjY4ZjgzNDEzYWE0ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.KJKJ1k3Jb3heby6oeOuX7jmCEVG1usxZB2LXw-i9XCE)
I decided to go a bit different way and just added left-margin based on Grafana Labs Storybook. Works fine for me. I think in most case scenarios max value is 100 so it shouldn't be any overlapping.
Which issue(s) does this PR fix?:
Fixes #71220
Special notes for your reviewer:
Please check that: