tweaked dialog scrollbar

This commit is contained in:
2025-11-28 01:01:14 -05:00
parent 521dc70f86
commit 99e66763b0

View File

@@ -91,8 +91,8 @@ function makeInitialValues() {
let start: Date; let start: Date;
if (clickedDate.value) { if (clickedDate.value) {
const local = new Date(clickedDate.value + "T00:00:00"); const local = new Date(clickedDate.value + "T20:00:00");
start = roundToNextHour(local); start = local;
} else { } else {
start = roundToNextHour(); start = roundToNextHour();
} }
@@ -312,7 +312,7 @@ function getColorName(hex: string) {
<FormItem> <FormItem>
<FormLabel>Description</FormLabel> <FormLabel>Description</FormLabel>
<FormControl> <FormControl>
<Textarea class="resize-none h-32" v-bind="componentField" /> <Textarea class="resize-none h-32 scrollbar-themed" v-bind="componentField" />
</FormControl> </FormControl>
<div class="h-3"> <div class="h-3">
<FormMessage/> <FormMessage/>
@@ -333,3 +333,33 @@ function getColorName(hex: string) {
</Dialog> </Dialog>
</Form> </Form>
</template> </template>
<style scoped>
/* Firefox */
.scrollbar-themed {
scrollbar-width: thin;
scrollbar-color: #555 #1f1f1f;
padding-right: 6px;
}
/* Chrome, Edge, Safari */
.scrollbar-themed::-webkit-scrollbar {
width: 10px;
/* slightly wider to allow padding look */
}
.scrollbar-themed::-webkit-scrollbar-track {
background: #1f1f1f;
margin-left: 6px;
/* ❗ adds space between content + scrollbar */
}
.scrollbar-themed::-webkit-scrollbar-thumb {
background: #555;
border-radius: 9999px;
}
.scrollbar-themed::-webkit-scrollbar-thumb:hover {
background: #777;
}
</style>