20-calendar-system #37

Merged
Ajdj100 merged 25 commits from 20-calendar-system into main 2025-11-28 00:06:10 -06:00
Showing only changes of commit 99e66763b0 - Show all commits

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,10 +312,10 @@ 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/>
</div> </div>
</FormItem> </FormItem>
</FormField> </FormField>
@@ -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>