-
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
add previous and next button to History and Logbook #22802
base: dev
Are you sure you want to change the base?
add previous and next button to History and Logbook #22802
Conversation
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 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 (
|
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.
Thank you, really nice improvement.
I just made some comments.
Please set your git config name. Currently it is set to Your Name
<ha-icon-button-prev | ||
.label=${this.hass.localize("ui.common.previous")} | ||
class="prev" | ||
@click=${this._handlePrev} | ||
> | ||
</ha-icon-button-prev> |
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.
Please hide prev and next buttons on mobile, it takes too much space, look how it is done with ha-svg-icon
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.
Maybe a stupid question, why is there a second Date-Entry for EndDate? Both: StartDate and Enddate load the exact same Daterange-Picker which includes Start and Enddate? Thought about to remove the EndDate for mobile.
If i disable the prev and next buttons they can not be used on small displays. Maybe I found another solution: changing the media-query solved it.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
@@ -413,7 +456,7 @@ export class HaDateRangePicker extends LitElement { | |||
} | |||
} | |||
|
|||
@media only screen and (max-width: 500px) { | |||
@media only screen and (max-width: 560px) { |
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.
Only had troubles on Resolutions between 500 and 560px.
I added 560 here, as min-width:inherit shrinks the date to fit ..
Breaking change
Proposed change
add previous and next buttons to History and Logbook:
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: