diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/_iot-hub-common.scss b/ui-ngx/src/app/modules/home/components/iot-hub/_iot-hub-common.scss
index d247f20112..96697ebe74 100644
--- a/ui-ngx/src/app/modules/home/components/iot-hub/_iot-hub-common.scss
+++ b/ui-ngx/src/app/modules/home/components/iot-hub/_iot-hub-common.scss
@@ -119,3 +119,39 @@
pointer-events: none;
}
}
+
+// Scroll area that shows its thumb only while the container is hovered — the filter panels'
+// own treatment, kept here so the two that use it cannot drift apart.
+//
+// Not the app-wide one: theme.scss keeps its thumb permanently visible. Whether these panels
+// should do the same, and whether to add the standardised scrollbar-width / scrollbar-color
+// that Firefox reads, is a question for the IoT Hub filter UI as a whole rather than for one
+// panel; iot-hub-browse and dashboard-widget-select carry copies of this same treatment.
+@mixin tb-iot-hub-hover-scrollbar {
+ &::-webkit-scrollbar {
+ width: 6px;
+ }
+
+ &::-webkit-scrollbar-track {
+ background-color: transparent;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background-color: transparent;
+ border-radius: 3px;
+ }
+
+ &:hover {
+ &::-webkit-scrollbar-track {
+ background-color: rgba(0, 0, 0, 0.04);
+ }
+
+ &::-webkit-scrollbar-thumb {
+ background-color: rgba(0, 0, 0, 0.2);
+
+ &:hover {
+ background-color: rgba(0, 0, 0, 0.35);
+ }
+ }
+ }
+}
diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-facet-list.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-facet-list.component.scss
index e5fc43f803..4df80a68e1 100644
--- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-facet-list.component.scss
+++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-facet-list.component.scss
@@ -45,32 +45,7 @@
overflow-y: auto;
}
- &::-webkit-scrollbar {
- width: 6px;
- }
-
- &::-webkit-scrollbar-track {
- background-color: transparent;
- }
-
- &::-webkit-scrollbar-thumb {
- background-color: transparent;
- border-radius: 3px;
- }
-
- &:hover {
- &::-webkit-scrollbar-track {
- background-color: rgba(0, 0, 0, 0.04);
- }
-
- &::-webkit-scrollbar-thumb {
- background-color: rgba(0, 0, 0, 0.2);
-
- &:hover {
- background-color: rgba(0, 0, 0, 0.35);
- }
- }
- }
+ @include tb-iot-hub-hover-scrollbar;
}
.tb-iot-hub-facet-search {
diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-search.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-search.component.scss
index 32c7a51458..3f946404ad 100644
--- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-search.component.scss
+++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-search.component.scss
@@ -221,32 +221,7 @@
overflow-y: auto;
padding-top: 20px;
- &::-webkit-scrollbar {
- width: 6px;
- }
-
- &::-webkit-scrollbar-track {
- background-color: transparent;
- }
-
- &::-webkit-scrollbar-thumb {
- background-color: transparent;
- border-radius: 3px;
- }
-
- &:hover {
- &::-webkit-scrollbar-track {
- background-color: rgba(0, 0, 0, 0.04);
- }
-
- &::-webkit-scrollbar-thumb {
- background-color: rgba(0, 0, 0, 0.2);
-
- &:hover {
- background-color: rgba(0, 0, 0, 0.35);
- }
- }
- }
+ @include tb-iot-hub-hover-scrollbar;
}
// The close button and heading belong to the narrow layout only.
diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.html b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.html
index b2be21ac32..564f89ca46 100644
--- a/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.html
+++ b/ui-ngx/src/app/modules/home/pages/iot-hub/iot-hub-home.component.html
@@ -86,7 +86,7 @@
} @else {
@for (group of searchResultGroups; track group.type) {
@for (item of group.items; track item.id) {
-
+