-
Notifications
You must be signed in to change notification settings - Fork 29
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
Variables: Prioritize showing adhoc variable key and operator #750
Variables: Prioritize showing adhoc variable key and operator #750
Conversation
84ba707
to
45c795e
Compare
45c795e
to
05a9e5d
Compare
@oscarkilhed - can we also add some max width constraint to the value input? While editing it (entering custom value) it can push the time controls outside of the container: ![]() |
key: css({ | ||
flexShrink: 0, |
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.
why happens when the key is really long, will this stop ellipsis on the key? I would expect both to be ellipised with some min width.
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.
+1
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.
Hmm. You're right. Trying some stuff out I think having it set to flex-shrink: 1 and a relatively small min-width for the key as well looks best.
Working on this. Apparently it's not that easy to solve. Not sure what's causing the element to grow outside of the parent element. |
Managed to fix the overlap of the remove button and time controls. Seems to have been because the remove button had 0 width. Will continue working on the controls being pushed outside of the viewport. |
🚀 PR was released in |
# v4.24.4 (Thu May 30 2024) #### 🐛 Bug Fix - `@grafana/scenes` - VizPanelRenderer: Emit SetPanelAttention event [#716](grafana/scenes#716) ([@tskarhed](https://github.com/tskarhed)) #### Authors: 1 - Tobias Skarhed ([@tskarhed](https://github.com/tskarhed)) --- # v4.24.3 (Thu May 30 2024) #### 🐛 Bug Fix - `@grafana/scenes` - Macros: Resolve browser timezone for `$__timezone` [#759](grafana/scenes#759) ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Variables: Prioritize showing adhoc variable key and operator [#750](grafana/scenes#750) ([@oscarkilhed](https://github.com/oscarkilhed)) #### Authors: 2 - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Oscar Kilhed ([@oscarkilhed](https://github.com/oscarkilhed)) --- # v4.24.2 (Wed May 29 2024) #### 🐛 Bug Fix - `@grafana/scenes` - MultiValueVariable: Fixes issue when value is all value but all value is not enabled [#757](grafana/scenes#757) ([@torkelo](https://github.com/torkelo) [@ivanortegaalba](https://github.com/ivanortegaalba)) #### Authors: 2 - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Torkel Ödegaard ([@torkelo](https://github.com/torkelo)) --- # v4.24.1 (Tue May 28 2024) #### 🐛 Bug Fix - Plugin.json: update schema reference URL in scenes-app [#754](grafana/scenes#754) ([@leventebalogh](https://github.com/leventebalogh)) - `@grafana/scenes` - Allow drag and dropping rows in valid states [#756](grafana/scenes#756) ([@mdvictor](https://github.com/mdvictor)) - fix: undefined check on RefreshPicker.autoOption [#751](grafana/scenes#751) ([@darrenjaneczek](https://github.com/darrenjaneczek)) #### Authors: 3 - Darren Janeczek ([@darrenjaneczek](https://github.com/darrenjaneczek)) - Levente Balogh ([@leventebalogh](https://github.com/leventebalogh)) - Victor Marin ([@mdvictor](https://github.com/mdvictor)) --- # v4.24.0 (Mon May 27 2024) #### 🚀 Enhancement - `@grafana/scenes` - SceneFlexLayout: Min width/height option was ignored [#749](grafana/scenes#749) ([@edvard-falkskar](https://github.com/edvard-falkskar)) #### Authors: 1 - Edvard Falkskär ([@edvard-falkskar](https://github.com/edvard-falkskar)) ---
- `@grafana/scenes` - VizPanelRenderer: Emit SetPanelAttention event [#716](grafana/scenes#716) ([@tskarhed](https://github.com/tskarhed)) - Tobias Skarhed ([@tskarhed](https://github.com/tskarhed)) --- - `@grafana/scenes` - Macros: Resolve browser timezone for `$__timezone` [#759](grafana/scenes#759) ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Variables: Prioritize showing adhoc variable key and operator [#750](grafana/scenes#750) ([@oscarkilhed](https://github.com/oscarkilhed)) - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Oscar Kilhed ([@oscarkilhed](https://github.com/oscarkilhed)) --- - `@grafana/scenes` - MultiValueVariable: Fixes issue when value is all value but all value is not enabled [#757](grafana/scenes#757) ([@torkelo](https://github.com/torkelo) [@ivanortegaalba](https://github.com/ivanortegaalba)) - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Torkel Ödegaard ([@torkelo](https://github.com/torkelo)) --- - Plugin.json: update schema reference URL in scenes-app [#754](grafana/scenes#754) ([@leventebalogh](https://github.com/leventebalogh)) - `@grafana/scenes` - Allow drag and dropping rows in valid states [#756](grafana/scenes#756) ([@mdvictor](https://github.com/mdvictor)) - fix: undefined check on RefreshPicker.autoOption [#751](grafana/scenes#751) ([@darrenjaneczek](https://github.com/darrenjaneczek)) - Darren Janeczek ([@darrenjaneczek](https://github.com/darrenjaneczek)) - Levente Balogh ([@leventebalogh](https://github.com/leventebalogh)) - Victor Marin ([@mdvictor](https://github.com/mdvictor)) --- - `@grafana/scenes` - SceneFlexLayout: Min width/height option was ignored [#749](grafana/scenes#749) ([@edvard-falkskar](https://github.com/edvard-falkskar)) - Edvard Falkskär ([@edvard-falkskar](https://github.com/edvard-falkskar)) --- (cherry picked from commit c5ae0bb)
# v4.24.4 (Thu May 30 2024) #### 🐛 Bug Fix - `@grafana/scenes` - VizPanelRenderer: Emit SetPanelAttention event [grafana#716](grafana/scenes#716) ([@tskarhed](https://github.com/tskarhed)) #### Authors: 1 - Tobias Skarhed ([@tskarhed](https://github.com/tskarhed)) --- # v4.24.3 (Thu May 30 2024) #### 🐛 Bug Fix - `@grafana/scenes` - Macros: Resolve browser timezone for `$__timezone` [grafana#759](grafana/scenes#759) ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Variables: Prioritize showing adhoc variable key and operator [grafana#750](grafana/scenes#750) ([@oscarkilhed](https://github.com/oscarkilhed)) #### Authors: 2 - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Oscar Kilhed ([@oscarkilhed](https://github.com/oscarkilhed)) --- # v4.24.2 (Wed May 29 2024) #### 🐛 Bug Fix - `@grafana/scenes` - MultiValueVariable: Fixes issue when value is all value but all value is not enabled [grafana#757](grafana/scenes#757) ([@torkelo](https://github.com/torkelo) [@ivanortegaalba](https://github.com/ivanortegaalba)) #### Authors: 2 - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Torkel Ödegaard ([@torkelo](https://github.com/torkelo)) --- # v4.24.1 (Tue May 28 2024) #### 🐛 Bug Fix - Plugin.json: update schema reference URL in scenes-app [grafana#754](grafana/scenes#754) ([@leventebalogh](https://github.com/leventebalogh)) - `@grafana/scenes` - Allow drag and dropping rows in valid states [grafana#756](grafana/scenes#756) ([@mdvictor](https://github.com/mdvictor)) - fix: undefined check on RefreshPicker.autoOption [grafana#751](grafana/scenes#751) ([@darrenjaneczek](https://github.com/darrenjaneczek)) #### Authors: 3 - Darren Janeczek ([@darrenjaneczek](https://github.com/darrenjaneczek)) - Levente Balogh ([@leventebalogh](https://github.com/leventebalogh)) - Victor Marin ([@mdvictor](https://github.com/mdvictor)) --- # v4.24.0 (Mon May 27 2024) #### 🚀 Enhancement - `@grafana/scenes` - SceneFlexLayout: Min width/height option was ignored [grafana#749](grafana/scenes#749) ([@edvard-falkskar](https://github.com/edvard-falkskar)) #### Authors: 1 - Edvard Falkskär ([@edvard-falkskar](https://github.com/edvard-falkskar)) ---
Scenes: Update to latest 4.23.1 -> 4.24.4 (#88485) - `@grafana/scenes` - VizPanelRenderer: Emit SetPanelAttention event [#716](grafana/scenes#716) ([@tskarhed](https://github.com/tskarhed)) - Tobias Skarhed ([@tskarhed](https://github.com/tskarhed)) --- - `@grafana/scenes` - Macros: Resolve browser timezone for `$__timezone` [#759](grafana/scenes#759) ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Variables: Prioritize showing adhoc variable key and operator [#750](grafana/scenes#750) ([@oscarkilhed](https://github.com/oscarkilhed)) - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Oscar Kilhed ([@oscarkilhed](https://github.com/oscarkilhed)) --- - `@grafana/scenes` - MultiValueVariable: Fixes issue when value is all value but all value is not enabled [#757](grafana/scenes#757) ([@torkelo](https://github.com/torkelo) [@ivanortegaalba](https://github.com/ivanortegaalba)) - Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba)) - Torkel Ödegaard ([@torkelo](https://github.com/torkelo)) --- - Plugin.json: update schema reference URL in scenes-app [#754](grafana/scenes#754) ([@leventebalogh](https://github.com/leventebalogh)) - `@grafana/scenes` - Allow drag and dropping rows in valid states [#756](grafana/scenes#756) ([@mdvictor](https://github.com/mdvictor)) - fix: undefined check on RefreshPicker.autoOption [#751](grafana/scenes#751) ([@darrenjaneczek](https://github.com/darrenjaneczek)) - Darren Janeczek ([@darrenjaneczek](https://github.com/darrenjaneczek)) - Levente Balogh ([@leventebalogh](https://github.com/leventebalogh)) - Victor Marin ([@mdvictor](https://github.com/mdvictor)) --- - `@grafana/scenes` - SceneFlexLayout: Min width/height option was ignored [#749](grafana/scenes#749) ([@edvard-falkskar](https://github.com/edvard-falkskar)) - Edvard Falkskär ([@edvard-falkskar](https://github.com/edvard-falkskar)) --- (cherry picked from commit c5ae0bb)
When the value of the adhoc filter gets long, you can't see the key and operator, which are arguably more important than showing a few more characters of the already truncated value.
Before:

After:

Fixes: grafana/grafana#88328