Skip to content

Commit

Permalink
Update image viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
José Luis Pereira committed Aug 23, 2022
1 parent 6f9eca9 commit 0018aad
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
2 changes: 0 additions & 2 deletions config/style/theme.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

:root {
--color-primary: 137, 167, 65;
--color-primary-content: 255, 255, 255;
Expand Down Expand Up @@ -26,4 +25,3 @@
--color-base-300: 30, 41, 59;
--color-base-content: 255, 255, 255;
}

9 changes: 3 additions & 6 deletions src/components/ImageViewer/ImageToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
<div>
<slot />
</div>
<button
type="button"
class="p-2 cursor-pointer opacity-50 text-base-content"
>
<IconClose />
</button>
<div>
<slot name="right" />
</div>
</div>
</template>

Expand Down
5 changes: 4 additions & 1 deletion src/components/ImageViewer/ImageViewer.global.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div
class="fixed z-[10000] h-full overflow-y-hidden overflow-x-hidden w-full top-0 left-0 flex flex-col items-center justify-center backdrop-blur-md bg-base-foreground"
@click="emit('close')"
>
<div
class="min-w-96 dark:bg-slate-900 rounded-lg shadow-sm mb-24"
Expand Down Expand Up @@ -72,6 +71,9 @@
:current-image="index"
:total-images="images.length"
/>
<template #right>
<ImageViewerClose @click="emit('close')" />
</template>
</ImageToolbar>
</div>
</template>
Expand All @@ -86,6 +88,7 @@ import ControlNextImage from './ControlImageNext.vue'
import ControlPreviousImage from './ControlImagePrevious.vue'
import GalleryThumbnailList from '@/components/Gallery/GalleryThumbnailList.vue'
import ImageToolbar from './ImageToolbar.vue'
import ImageViewerClose from './ImageViewerClose.vue'
const props = defineProps({
index: {
Expand Down
11 changes: 11 additions & 0 deletions src/components/ImageViewer/ImageViewerClose.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<button
type="button"
class="p-2 cursor-pointer opacity-50 text-base-content"
>
<IconClose />
</button>
</template>

<script setup>
</script>
2 changes: 1 addition & 1 deletion src/modules/otus/components/Citation/CitationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import OtuService from '../../services/OtuService'
import CitationRow from './CitationRow.vue'
import CitationRowShowMore from './CitationRowShowMore.vue'
const MAX_CITATIONS = 5
const MAX_CITATIONS = 3
const props = defineProps({
otuId: {
Expand Down

0 comments on commit 0018aad

Please sign in to comment.