-
-
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
Support configurable visibility of semantic model cards #2144
Conversation
Only render model-card if `visible` computed property is `true`. Hide divs in model-tabs which do not have a visible model-card. Closes openhab#2143 Signed-off-by: Thomas Wunschel <thomas.wunschel@twistsolutions.de> Signed-off-by: Thomas Wunschel <4302898+wuschi@users.noreply.github.com>
4024432
to
e4a07e4
Compare
Job #1230: Bundle Size — 15.79MiB (+0.2%).Warning Bundle contains 16 duplicate packages – View 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 #1230 report View wuschi:2143-model-card-visibilit... branch activity |
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.
LGTM, thanks! Congrats to your first contribution!
Can you open the drop down and it works? It’s the icon besides the orange checkbox. |
Now i see what you mean. |
Exactly. But I don’t find the cause of this issue, do you have an idea what’s going on? |
Not really - I'm not a css expert, but as far as i can tell the z-index of the .menu-dropdown-link elements seems to get messed up. You can observe this clearly when you set the background-color for the .config-sheet containing the Equipment List to e.g. red in your browser tools: This sheet seems to get rendered above the dropdown-menu. For the .menu-dropdown-link the chrome developer tools complain that the z-index has no effect because of "position: static" being set for the element, but I have no idea where that "position: static" comes from as css clearly states that it should be "position: relative". Even more strange - if you disable the "position: relative" in the .list css class of the .homecards-list div, the z-index gets applied and the dropdown renders correclty. Btw., the discussion seems to have gotten a little bit off-topic here, maybe you should create an issue for the css problem. |
Fixes issue mentioned in openhab#2144 (comment). Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes issue mentioned in #2144 (comment). --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes issue mentioned in #2144 (comment). --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> (cherry picked from commit 80a172e)
Only render model-card if
visible
computed property istrue
.Hide divs in model-tabs which do not have a visible model-card.
Closes #2143