On this page, I have included a table with a maximum height. If the content exceeds this height, a custom scrollbar should appear. However, there is an issue on mobile devices where the scrollbar does not display until the content is scrolled.
Click here for image description
.scan-by-blocks .scan-by-block .legend {
max-height: 120px;
overflow-y: auto;
}
.scan-by-blocks .scan-by-block .legend::-webkit-scrollbar {
width: 8px;
}
.scan-by-blocks .scan-by-block .legend::-webkit-scrollbar-thumb {
background-color: var(--grey-dark);
border-radius: 5px;
-webkit-box-shadow: inset 0 0 6px var(--grey-dark);
}
.scan-by-blocks .scan-by-block .legend::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
I am looking for a solution to ensure that the scrollbar remains visible on mobile devices even when the content is not scrolled.