-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Sitemap Editor: Buttongrid support #2193
Conversation
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Job #1298: Bundle Size — 15.82MiB (+0.39%).Important Bundle introduced 1 and removed 1 duplicate package – View changed duplicate packages Warning Bundle introduced 13 new packages: @jsep-plugin/regex, @jsep-plugin/arrow, @jsep-plugin/object and 10 more – View changed packages Bundle metrics
Bundle size by type
View job #1298 report View mherwege:buttongrid branch activity |
@lolodomo I hope I have the JSON format right, but would need a working UI to test. I understand there is none yet. I will correct if there is an issue. |
I started to implement buttongrid widget. I will publish a WIP PR today so that you can test your PR. |
@mherwege : look at my message, I propose to change the syntax: openhab/openhab-core#3441 (comment) |
@lolodomo I am fine with that change. If it is agreed, I will adapt the sitemap editor PR accordingly. |
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@lolodomo I now adapted it to the syntax with colons to separate row and column ( Here are few screenshots: |
Is this finished and ready for review? |
@florian-h05 Yes it is. |
Is it compatible with the last syntax (PR merged yesterday) ? |
If this is the syntax, yes. |
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.
Thanks @mherwege it seems to work well.
I think the header/tabs in the bottom pane (Widget, Visibility...) when on some phones with the iOS theme is becoming quite crowded, like this:
We might need to find a solution design-wise for these, when there are too many 'tabs' to display and there isn't enough room.
Otherwise LGTM!
@ghys I see. It might be better to put Visibility at the end cor this. I put it there because I found that the more logical position. I did create these extra tabs because content inside one tab became too much. Is there a way to swipe the tabs slightly left/right? That might be a solution. |
<f7-icon ios="f7:plus" md="material:add" aurora="f7:plus" /> | ||
<f7-icon ios="f7:multiply" md="material:close" aurora="f7:multiply" /> | ||
</f7-fab> | ||
|
||
<f7-sheet class="sitemap-details-sheet" :backdrop="false" :close-on-escape="true" :opened="detailsOpened" @sheet:closed="detailsOpened = false"> | ||
<f7-sheet v-if="currentTab === 'tree'" class="sitemap-details-sheet" :backdrop="false" :close-on-escape="true" :opened="detailsOpened" @sheet:closed="detailsOpened = false"> | ||
<f7-page> | ||
<f7-toolbar tabbar bottom> |
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.
Add ‘scrollable’ here may do.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@ghys I added a scrollable attribute to the tabbar. I hope that makes it better. |
I have tested this now on my iPhone 14 and in the Chrome DevTools with "Pixel 7" setting, and in both cases, the tab bar is now scrollable. |
The new widget is now implemented (merged) in Basic UI so we really need this PR before OH 4.1 code is frozen ;) |
Sure. Let's wait for Yannick till Friday evening, and then merge, |
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.
I'm happy with this fix, maybe we should move the chevron (to collapse) to the left so we don't have to scroll to find it, but it'll do for now.
Thanks for addressing my concerns!
Follow-up for openhab#2193. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Follow-up for #2193. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This PR adds the Buttongrid element to the sitemap editor.
There is also some cleanup for configuration on small screens.
See openhab/openhab-core#3810 and openhab/openhab-android#3494