Skip to content

Commit ec6d134

Browse files
committed
- Styling: removed scrollbar-thin class and updated panel to use styled scroll for body.
1 parent 9d57ba5 commit ec6d134

File tree

3 files changed

+3
-61
lines changed

3 files changed

+3
-61
lines changed

Rock.JavaScript.Obsidian/Framework/Controls/categoryTree.obs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Copyright by the Spark Development Network; Licensed under the Rock Community License -->
22
<template>
3-
<div class="scrollbar-thin picker-body border border-gray-300 rounded overflow-visible overflow-y-auto position-relative z-0" :style="`height: ${height}`">
3+
<div class="picker-body border border-gray-300 rounded overflow-visible overflow-y-auto position-relative z-0" :style="`height: ${height}`">
44
<TreeList v-model="internalValues"
55
:multiple="multiple"
66
:provider="itemProvider"
@@ -13,35 +13,6 @@
1313
</div>
1414
</template>
1515

16-
<style scoped>
17-
.scrollbar-thin {
18-
scrollbar-width: thin;
19-
}
20-
21-
.scrollbar-thin::-webkit-scrollbar {
22-
width: 8px;
23-
border-radius: 4px;
24-
}
25-
26-
.scrollbar-thin::-webkit-scrollbar-button {
27-
display: none;
28-
}
29-
30-
.scrollbar-thin::-webkit-scrollbar-thumb {
31-
background-color: #858585;
32-
border-radius: 4px;
33-
}
34-
35-
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
36-
background-color: #6b6b6b;
37-
}
38-
39-
.scrollbar-thin::-webkit-scrollbar-track {
40-
background-color: #f0f0f0;
41-
border-radius: 4px;
42-
}
43-
</style>
44-
4516
<script setup lang="ts">
4617
import { type PropType, ref, watch, watchEffect } from "vue";
4718
import TreeList from "./treeList.obs";

Rock.JavaScript.Obsidian/Framework/Controls/pageTree.obs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Copyright by the Spark Development Network; Licensed under the Rock Community License -->
22
<template>
3-
<div class="scrollbar-thin picker-body border border-gray-300 rounded overflow-visible overflow-y-auto position-relative z-0" :style="`height: ${height}`">
3+
<div class="picker-body border border-gray-300 rounded overflow-visible overflow-y-auto position-relative z-0" :style="`height: ${height}`">
44
<TreeList v-model="internalValues"
55
:multiple="multiple"
66
:provider="itemProvider"
@@ -13,35 +13,6 @@
1313
</div>
1414
</template>
1515

16-
<style scoped>
17-
.scrollbar-thin {
18-
scrollbar-width: thin;
19-
}
20-
21-
.scrollbar-thin::-webkit-scrollbar {
22-
width: 8px;
23-
border-radius: 4px;
24-
}
25-
26-
.scrollbar-thin::-webkit-scrollbar-button {
27-
display: none;
28-
}
29-
30-
.scrollbar-thin::-webkit-scrollbar-thumb {
31-
background-color: #858585;
32-
border-radius: 4px;
33-
}
34-
35-
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
36-
background-color: #6b6b6b;
37-
}
38-
39-
.scrollbar-thin::-webkit-scrollbar-track {
40-
background-color: #f0f0f0;
41-
border-radius: 4px;
42-
}
43-
</style>
44-
4516
<script setup lang="ts">
4617
import { type PropType, ref, watch, watchEffect } from "vue";
4718
import { SiteType } from "@Obsidian/Enums/Cms/siteType";

Rock.JavaScript.Obsidian/Framework/Controls/panel.obs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
});
407407

408408
const panelBodyClass = computed<string[]>(() => {
409-
const classes = ["panel-body"];
409+
const classes = ["panel-body styled-scroll"];
410410

411411
if (props.panelBodyCssClass) {
412412
classes.push(props.panelBodyCssClass);

0 commit comments

Comments
 (0)