Skip to content
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

adjust configuration menu for list items, fixes #892 #943

Merged
merged 4 commits into from
Mar 15, 2021

Conversation

hubsif
Copy link
Contributor

@hubsif hubsif commented Mar 8, 2021

This is to fix the custom list item configuration of issue #892.
To achieve this, I moved the level at which a list item menu is created to the parent component (oh-list), like it also is for all other components.

The bug report actually contains another issue, I think, about list items not being display in the widget editor. I'm going to open an extra github issue for that.

Signed-off-by: Hubert Nusser <hubsif@gmx.de>
@hubsif hubsif requested a review from a team as a code owner March 8, 2021 19:50
ghys added 2 commits March 14, 2021 11:05
Signed-off-by: Yannick Schaus <github@schaus.net>
@relativeci
Copy link

relativeci bot commented Mar 14, 2021

Job #27: Bundle Size — 10.88MB (-0.05%).

3697e20 vs 641c52d

Changed metrics (3/8)
Metric Current Baseline
Initial JS 1.59MB(-0.13%) 1.6MB
Cache Invalidation 19.68% 19.64%
Modules 1585(-0.19%) 1588
Changed assets by type (1/7)
            Current     Baseline
JS 8.55MB (-0.06%) 8.55MB

View Job #27 report on app.relative-ci.com

Signed-off-by: Yannick Schaus <github@schaus.net>
Copy link
Member

@ghys ghys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We lost the vertical alignment when the item's height is bigger than the button, but it's a small price to pay ;)

image

I added some last minute fixes to align the item buttons with the "+" button, and fix #919 in the process.
The reason these menus are behind other elements is because the .list CSS class defines z-index: 1 - if you have a z-index anywhere in the tree it will behave like that. So I removed it but in edit mode only, in run mode it's probably best to keep things as they are as much as possible.

Build is green again, so let's merge.

@ghys ghys merged commit c556597 into openhab:main Mar 15, 2021
@ghys ghys added bug Something isn't working main ui Main UI labels Apr 1, 2021
@ghys ghys added this to the 3.1 milestone Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants