Skip to content

Commit

Permalink
chore: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice committed Jul 22, 2023
1 parent 8f83f1d commit 8411df4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
29 changes: 15 additions & 14 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { BrushOptions, DrawOptions, SvgReplayOptions } from '../types/svg'
import { createToast } from '../utils/toast'
const SvgCanvas = defineAsyncComponent(() => import('../components/SvgCanvas.vue'))
const ResizePan = defineAsyncComponent(() => import('../components/ResizePan.vue'))
const { createShareUrl, parseShareInfo } = useShare()
const { copy } = useClipboard()
Expand Down Expand Up @@ -114,14 +115,14 @@ function debugPane() {
<teleport to="body">
<div ref="paneRef" fixed left-2 top-2 z-100 w-280px />
</teleport>
<ResizePan
:width="width"
:height="height"
@update:width="updateCanvasWidth"
@update:height="updateCanvasHeight"
>
<Card relative cursor-none>
<ClientOnly>
<ClientOnly>
<ResizePan
:width="width"
:height="height"
@update:width="updateCanvasWidth"
@update:height="updateCanvasHeight"
>
<Card relative cursor-none>
<SvgCanvas
ref="svgRef"
:initial-lines="initialLines"
Expand All @@ -132,10 +133,10 @@ function debugPane() {
:height="height"
@update="svg = $event"
/>
</ClientOnly>
<PenCursor class="!absolute" top-0 />
</Card>
</ResizePan>
<PenCursor class="!absolute" top-0 />
</Card>
</ResizePan>
</ClientOnly>
<SvgPreviewer
v-if="svg"
:svg-code="svg"
Expand Down Expand Up @@ -211,8 +212,8 @@ function debugPane() {

<style lang="scss">
.toolbar {
background: linear-gradient(90deg, #ffffff00 0%, #fcfcfc00 100%);
backdrop-filter: blur(3px);
background: linear-gradient(90deg, #ffffff30 0%, #fcfcfcaa 100%);
backdrop-filter: blur(10px);
position: relative;
&::after {
content: "";
Expand Down
6 changes: 3 additions & 3 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default defineConfig({
shortcuts: [
['full', 'w-full h-full'],
['flex-center', 'flex items-center justify-center'],
['btn', 'rounded-2 px-4 py-2 bg-purple-600 text-white hover:bg-purple-700 disabled:opacity-50 disabled:cursor-not-allowed'],
['btn-outline', 'rounded-2 px-4 py-2 b-1 bg-white border-color-purple-600 text-purple-700 hover:text-purple-700 hover:border-color-purple-700 disabled:opacity-50 disabled:cursor-not-allowed'],
['preview-btn', 'rounded-full bg-white px4 py2 font-bold text-dark/70 hover:text-dark hover:bg-white/80 transition-all'],
['btn', 'font-medium rounded-2 px-4 py-2 bg-purple-600 text-white hover:bg-purple-700 disabled:opacity-50 disabled:cursor-not-allowed'],
['btn-outline', 'font-medium rounded-2 px-4 py-2 b-1 bg-white border-color-purple-600 text-purple-700 hover:text-purple-700 hover:border-color-purple-700 disabled:opacity-50 disabled:cursor-not-allowed'],
['preview-btn', 'rounded-full bg-white px4 py2 font-medium text-dark/70 hover:text-dark hover:bg-white/80 transition-all'],
],
presets: [
presetUno(),
Expand Down

0 comments on commit 8411df4

Please sign in to comment.