Skip to content

Commit

Permalink
fix: fix body scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Feb 27, 2024
1 parent 7a1b84d commit d7f8d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ async function handleAfterRead(file: VarFile) {

<template>
<div class="flex flex-col justify-center items-center min-h-screen p-[24px]">
<var-input class="w-[300px]" placeholder="e.g. #f82506" variant="outlined" v-model.trim="source">
<var-input class="w-[300px] mt-[10px]" placeholder="e.g. #f82506" variant="outlined" v-model.trim="source">
<template #append-icon>
<var-uploader hide-list v-model="files" @after-read="handleAfterRead">
<var-button type="primary">Upload Image</var-button>
</var-uploader>
</template>
</var-input>

<var-button class="mt-[20px]" type="success" v-if="light && dark" @click="copyThemes">Copy Themes</var-button>
<var-button class="mt-[30px]" type="success" v-if="light && dark" @click="copyThemes">Copy Themes</var-button>

<var-paper class="p-[30px] mt-[30px]" :elevation="2" :radius="12" v-if="light">
<div class="text-[22px] pb-[30px] px-[4px]">Light</div>
Expand Down
2 changes: 0 additions & 2 deletions src/styles/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ body {
transition: background-color 0.25s, color 0.25s;
color: var(--color-text);
background-color: var(--color-body);
overflow: hidden;
margin: 0;
padding: 0;
font-size: 14px;
}

0 comments on commit d7f8d90

Please sign in to comment.