Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

CSS fix for when mdc-select searchable is on top (#904)

Martin Peetersc9df8ed778a5
diff --git a/ui/component/or-mwc-components/src/or-mwc-input.ts b/ui/component/or-mwc-components/src/or-mwc-input.ts
index 4f77e5822..5d25506a4 100644
--- a/ui/component/or-mwc-components/src/or-mwc-input.ts
+++ b/ui/component/or-mwc-components/src/or-mwc-input.ts
@@ -514,7 +514,7 @@ const style = css`
#select-searchable {
background-color: transparent;
border: 1px solid var(--or-app-color5, ${unsafeCSS(DefaultColor5)});
- margin: 8px 8px 0;
+ margin: 8px;
width: calc(100% - 16px);
border-radius: 4px;
padding: 4px 16px;
@@ -601,13 +601,15 @@ const style = css`
.mdc-select__selected-text {
white-space: normal;
}
-
+
.mdc-menu__searchable {
overflow: hidden;
- flex-direction: column;
+ flex-direction: column-reverse;
+ display: flex;
}
-
+
.mdc-menu__searchable.mdc-menu-surface--is-open-below {
+ flex-direction: column;
display: flex;
}
`;