Skip to content

Commit 85111a1

Browse files
authored
Merge pull request #331 from DecentralCardGame/313-dropdown-scrollbar
Dropdown Scrollbar
2 parents 912e5d0 + e7bb5f1 commit 85111a1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/assets/index.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@
33
@tailwind components;
44
@tailwind utilities;
55

6+
:root {
7+
background-color:black;
8+
}
69
::-webkit-scrollbar {
710
width: 10px;
811
}
912

1013
/* Track */
1114
::-webkit-scrollbar-track {
12-
background: #FFFFFF;
1315
border-radius: 5px;
1416
}
1517

1618
/* Handle */
1719
::-webkit-scrollbar-thumb {
18-
background: #555;
20+
background: #8F6173;
1921
border-radius: 5px;
2022
}
2123

2224
/* Handle on hover */
2325
::-webkit-scrollbar-thumb:hover {
24-
background: #D82027;;
26+
background: #4E0723;
2527
}

src/components/elements/Dropdown/Dropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
<ul
2020
v-if="isOpen"
21-
class="absolute z-30 ring ring-white rounded ring-opacity-100 whitespace-nowrap"
21+
class="absolute z-30 ring ring-white rounded ring-opacity-100 whitespace-nowrap max-h-[50svh] overflow-auto"
2222
:class="[getBgColor(type)]"
2323
>
2424
<li

0 commit comments

Comments
 (0)