File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,20 @@ function onMousedown() {
4141 :title =" `Clicks in this slide: ${length}`"
4242 :class =" length && props.clicksContext.isMounted ? '' : 'op50'"
4343 >
44- <div class =" flex gap-0.5 items-center min-w-16 font-mono mr1" >
44+ <div class =" flex gap-0.2 items-center min-w-16 font-mono mr1" >
4545 <carbon:cursor-1 text-sm op50 />
46- <div flex-auto />
4746 <template v-if =" current >= 0 && current !== CLICKS_MAX && active " >
47+ <div flex-auto />
4848 <span text-primary >{{ current }}</span >
49- <span op25 >/</span >
49+ <span op25 text-sm >/</span >
50+ <span op50 text-sm >{{ total }}</span >
5051 </template >
51- <span op50 >{{ total }}</span >
52+ <div
53+ v-else
54+ op50 flex-auto pl1
55+ >
56+ {{ total }}
57+ </div >
5258 </div >
5359 <div
5460 relative flex-auto h5 font-mono flex =" ~"
@@ -62,10 +68,13 @@ function onMousedown() {
6268 ]"
6369 :style =" { width: length > 0 ? `${1 / length * 100}%` : '100%' }"
6470 >
65- <div absolute inset-0 :class =" i <= current ? 'bg-primary op15' : ''" />
71+ <div
72+ absolute inset-0
73+ :class =" (i <= current && active) ? 'bg-primary op15' : ''"
74+ />
6675 <div
6776 :class =" [
68- +i === +current ? 'text-primary font-bold op100 border-primary' : 'op30 border-main',
77+ ( +i === +current && active) ? 'text-primary font-bold op100 border-primary' : 'op30 border-main',
6978 i === 0 ? 'rounded-l' : '',
7079 i === total ? 'rounded-r' : 'border-r-2',
7180 ]"
Original file line number Diff line number Diff line change @@ -139,6 +139,14 @@ onMounted(() => {
139139 <carbon-moon v-if =" isDark" />
140140 <carbon-sun v-else />
141141 </IconButton >
142+ <IconButton
143+ v-else
144+ :title =" isDark ? 'Dark mode' : 'Light mode'"
145+ pointer-events-none op50
146+ >
147+ <carbon-moon v-if =" isDark" />
148+ <carbon-sun v-else />
149+ </IconButton >
142150 </div >
143151 </nav >
144152 <main
@@ -173,7 +181,7 @@ onMounted(() => {
173181 <carbon:cics-program />
174182 </IconButton >
175183 </div >
176- <div class =" flex flex-col gap-2 my5" >
184+ <div class =" flex flex-col gap-2 my5" :style = " { width: `${cardWidth}px` } " >
177185 <div
178186 class =" border rounded border-main overflow-hidden bg-main select-none h-max"
179187 @dblclick =" openSlideInNewTab(getSlidePath(route, false))"
You can’t perform that action at this time.
0 commit comments