File tree 2 files changed +24
-30
lines changed 2 files changed +24
-30
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" rounded-lg overflow-hidden shadow-md w-full text-contrast bg-bg-raised" >
3
- <div class =" relative" >
4
- <img
5
- :alt =" getFileName(screenshot.path)"
6
- :src =" `data:image/png;base64,${screenshot.data}`"
7
- class =" w-full h-auto object-contain"
8
- />
9
- </div >
10
- <div class =" p-4" >
11
- <div class =" flex items-center gap-2" >
12
- <div class =" font-medium truncate max-w-[calc(100%-120px)]" >
13
- {{ getFileName(screenshot.path) }}
14
- </div >
15
- <div class =" flex gap-1 ml-auto" >
16
- <Button icon-only title =" Rename" @click =" renameScreenshot" >
17
- <EditIcon />
18
- </Button >
19
- <Button icon-only title =" Copy" @click =" copyImageToClipboard" >
20
- <ClipboardCopyIcon />
21
- </Button >
22
- <Button icon-only title =" Share" @click =" shareScreenshot" >
23
- <ShareIcon />
24
- </Button >
25
- <Button color =" red" icon-only title =" Delete" @click =" deleteScreenshot" >
26
- <TrashIcon />
27
- </Button >
28
- </div >
29
- </div >
2
+ <div class =" group rounded-lg relative overflow-hidden shadow-md w-full text-contrast" >
3
+ <div
4
+ class =" absolute top-2 right-2 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200 z-10"
5
+ >
6
+ <Button icon-only title =" Rename" @click =" renameScreenshot" >
7
+ <EditIcon />
8
+ </Button >
9
+ <Button icon-only title =" Copy" @click =" copyImageToClipboard" >
10
+ <ClipboardCopyIcon />
11
+ </Button >
12
+ <Button icon-only title =" Share" @click =" shareScreenshot" >
13
+ <ShareIcon />
14
+ </Button >
15
+ <Button color =" red" icon-only title =" Delete" @click =" deleteScreenshot" >
16
+ <TrashIcon />
17
+ </Button >
30
18
</div >
19
+
20
+ <img
21
+ :alt =" getFileName(screenshot.path)"
22
+ :src =" `data:image/png;base64,${screenshot.data}`"
23
+ class =" w-full h-full object-cover"
24
+ />
31
25
</div >
32
26
</template >
33
27
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ const hasToday = computed(() => screenshotsByDate.value.some(([label]) => label
75
75
76
76
<div v-else class =" space-y-8" >
77
77
<template v-if =" ! hasToday " >
78
- <details class =" group space-y-2" open >
78
+ <details class =" space-y-2" open >
79
79
<summary class =" cursor-pointer flex items-center justify-between" >
80
80
<h2
81
81
class =" text-xxl font-bold underline decoration-4 decoration-brand-green underline-offset-8"
@@ -91,7 +91,7 @@ const hasToday = computed(() => screenshotsByDate.value.some(([label]) => label
91
91
</template >
92
92
93
93
<template v-for =" [date , shots ] in screenshotsByDate " :key =" date " >
94
- <details class =" group space-y-2" open >
94
+ <details class =" space-y-2" open >
95
95
<summary class =" cursor-pointer flex items-center justify-between" >
96
96
<h2
97
97
class =" text-xxl font-bold underline decoration-4 decoration-brand-green underline-offset-8"
You can’t perform that action at this time.
0 commit comments