-
Notifications
You must be signed in to change notification settings - Fork 2.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
Update developer-tools-template.ts: add independent scrollbars for left & right panels for large screens #17765
Update developer-tools-template.ts: add independent scrollbars for left & right panels for large screens #17765
Conversation
If we are going to add scroll bars to both sides, we should make this panel full screen, and make both scrollable containers the same height. Take a look at the automation traces UI for inspiration. |
Hi @bramkragten ! |
Hi! Are you planning to continue working on this? |
Hi, Bram! Absolutely yes. Sorry for a delay, some personal & war-related issues. |
No worries, was just checking! Thanks! |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
please do not close |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
please do not close |
I also wanna see this feature implemented cause it would help me big times. I have spent over 1 day cause my studio code server has failed big times and did not save really. And when it saved the reboot stopped without telling and went to an older yaml without telling me. Big mess while testing a very complex picture page with a lot of elements in that for each single string of the solar power system. |
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes made to the developer tools panel involve updates to CSS styles that enhance the layout and usability of the interface. New rules were added to control the dimensions and behavior of components like the code mirror and spinner, ensuring a more structured and responsive design without altering any exported or public entity declarations. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This suggestion doesn't work with smaller screens. The content jumps out of the card. |
Can you tell me with which screen you faced issue? |
Resolution 1400px * 600px should be enough to reproduce. |
A 2nd scrollbar will be shown if needed. Not the most elegant solution but it works. |
Hi @ildar170975, Lets sum it up what we want: on desktop the editor and preview should be scrollable for easier editing. What is still to do:
I made some suggestions on how you can implement it. |
@wendevlin Earlier (w/o the last commit) what I achieved was:
But there is a case when "listening entities" area causing an overflow:
and agree that this 2nd scrollbar is ugly. Ideas what I considered:
|
@ildar170975 Have you tried out my suggestions? I think you also have to edit: .edit-pane {
direction: var(--direction);
height: 100%;
} |
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
src/panels/developer-tools/template/developer-tools-template.ts
Outdated
Show resolved
Hide resolved
.render-pane { | ||
max-width: 100%; |
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.
.render-pane { | |
max-width: 100%; | |
.content ha-card { | |
max-width: 100%; |
Co-authored-by: Wendelin <[email protected]>
Co-authored-by: Wendelin <[email protected]>
Co-authored-by: Wendelin <[email protected]>
5e22cb2
to
e45c674
Compare
Hi @ildar170975, |
@wendevlin |
Ok thanks for the update. Take care and all the best! |
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.
This is a good state now, let's merge 🙂
@wendevlin |
…ft & right panels for large screens (home-assistant#17765) * Update developer-tools-template.ts * Update developer-tools-template.ts * fix overflow * Update src/panels/developer-tools/template/developer-tools-template.ts Co-authored-by: Wendelin <[email protected]> * Update src/panels/developer-tools/template/developer-tools-template.ts Co-authored-by: Wendelin <[email protected]> * Update developer-tools-template.ts * Update src/panels/developer-tools/template/developer-tools-template.ts Co-authored-by: Wendelin <[email protected]> * Update developer-tools-template.ts * prettier * Update developer-tools-template.ts * Update developer-tools-template.ts * prettier * Update developer-tools-template.ts * prettier * prettier * Update developer-tools-template.ts * prettier * prettier * prettier * Update developer-tools-template.ts --------- Co-authored-by: Wendelin <[email protected]>
Initial idea was posted here: https://community.home-assistant.io/t/dev-tools-template-add-scrollbars/439175
This PR creates independent scrollbars for right & left panel in Dev tools -> Template.
These scrollbars are visible on large screens only (when these panels are "left - right", not "up - down").
P.S. I do not like the current design where panels are not aligned:
instead of
but this will be another my PR (I hope...).
Breaking change
Proposed change
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
Summary by CodeRabbit
New Features
Bug Fixes