Skip to content

Commit f0601c3

Browse files
committed
fix(fields): always show scrollbar on table
1 parent f29f9c2 commit f0601c3

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

src/e3sm_quickview/components/drawers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(self, load_variables=None):
145145
items=("variables_listing", []),
146146
height=["var_selection_size?.size.height || '30vh'"],
147147
style="user-select: none; cursor: pointer;top:0;left:0;",
148-
classes="position-absolute",
148+
classes="position-absolute show-scrollbar",
149149
hover=True,
150150
search=("variables_filter", ""),
151151
items_per_page=-1,

src/e3sm_quickview/module/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
serve = {"quick_view": str(Path(__file__).with_name("serve").resolve())}
66
scripts = ["quick_view/utils.js"]
7+
styles = ["quick_view/style.css"]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.show-scrollbar ::-webkit-scrollbar {
2+
-webkit-appearance: none;
3+
width: 10px; /* or height for horizontal */
4+
}
5+
6+
/* Styles the draggable part of the scrollbar */
7+
.show-scrollbar ::-webkit-scrollbar-thumb {
8+
border-radius: 5px;
9+
background-color: rgba(0, 0, 0, 0.5);
10+
}
11+
12+
/* Styles the track (the area the thumb moves within) */
13+
.show-scrollbar ::-webkit-scrollbar-track {
14+
background: #f1f1f1;
15+
border-radius: 5px;
16+
}

0 commit comments

Comments
 (0)