Skip to content

Commit

Permalink
chore: update preview
Browse files Browse the repository at this point in the history
  • Loading branch information
JunaYa committed Dec 1, 2024
1 parent 9ea2939 commit b0a2aaf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
Binary file added public/mac_os_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/pages/preview/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { LazyStore } from '@tauri-apps/plugin-store'
import { useElementHover } from '@vueuse/core'
import { onMounted, ref } from 'vue'
import Button from '~/components/Button.vue'
import PictureReview from '~/components/PictureReview.vue'
import PictureReview from './PictureReview.vue'
// Import Pintura styles
import '@pqina/pintura/pintura.css'
Expand Down Expand Up @@ -88,6 +88,9 @@ onMounted(async () => {
</template>

<style>
:root {
background-color: transparent !important;
}
/* bright / dark mode */
.pintura-editor {
--color-background: 255, 255, 255;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,23 @@ onMounted(loadImage)
</div>

<!-- Image display -->
<div v-else class="h-48 w-58 flex flex-center overflow-hidden rounded-md">
<img
:src="imageUrl"
:alt="imagePath"
class="h-full w-full rounded-md object-contain"
>
<div v-else class="mac_os_bg relative h-48 w-58 flex flex-center overflow-hidden overflow-hidden rounded-md">
<div class="h-full w-full px-4 py-8">
<img
:src="imageUrl"
:alt="imagePath"
class="h-full w-full rounded-md object-contain"
>
</div>
</div>
</div>
</template>

<style scoped>
.mac_os_bg {
background-image: url(./mac_os_bg.jpg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
</style>

0 comments on commit b0a2aaf

Please sign in to comment.