@@ -131,46 +131,46 @@ function handleCopyLink() {
131131 </div >
132132
133133 <!-- Action row -->
134- <div class =" flex items-center justify-between gap-2" >
135- <div class =" flex items-center gap-2" >
134+ <div class =" flex items-center gap-2" >
135+ <Transition
136+ enter-active-class =" transition-all duration-150"
137+ leave-active-class =" transition-all duration-100"
138+ enter-from-class =" opacity-0 translate-y-1"
139+ leave-to-class =" opacity-0 translate-y-1"
140+ >
141+ <TooltipApp
142+ v-if =" showAlt"
143+ :text =" altCopied ? altText : 'Copy alt text for screen readers'"
144+ position =" top"
145+ strategy =" fixed"
146+ >
147+ <ButtonBase
148+ :classicon =" altCopied ? 'i-lucide:check' : 'i-lucide:copy'"
149+ @click =" copyAlt(altText)"
150+ >
151+ {{ altCopied ? 'Copied!' : 'Copy ALT' }}
152+ </ButtonBase >
153+ </TooltipApp >
154+ </Transition >
155+
156+ <div class =" flex items-center gap-2 ml-auto" >
136157 <ButtonBase
137- :classicon =" linkCopied ? 'i-lucide:check text-green-500 ' : 'i-lucide:link'"
158+ :classicon =" linkCopied ? 'i-lucide:check' : 'i-lucide:link'"
138159 :disabled =" !imgLoaded"
139160 @click =" handleCopyLink"
140161 >
141162 {{ linkCopied ? 'Copied!' : 'Copy link' }}
142163 </ButtonBase >
143164
144- <Transition
145- enter-active-class =" transition-all duration-300 ease-out"
146- enter-from-class =" opacity-0 -translate-x-2 scale-95"
147- enter-to-class =" opacity-100 translate-x-0 scale-100"
165+ <ButtonBase
166+ variant =" primary"
167+ classicon =" i-lucide:download"
168+ :disabled =" !imgLoaded"
169+ @click =" downloadCard"
148170 >
149- <TooltipApp
150- v-if =" showAlt"
151- :text =" altCopied ? altText : 'Copy alt text for screen readers'"
152- position =" top"
153- strategy =" fixed"
154- >
155- <ButtonBase
156- :classicon =" altCopied ? 'i-lucide:check text-green-500' : 'i-lucide:copy'"
157- :class =" altCopied ? 'text-green-500' : ''"
158- @click =" copyAlt(altText)"
159- >
160- {{ altCopied ? 'Copied!' : 'Copy ALT' }}
161- </ButtonBase >
162- </TooltipApp >
163- </Transition >
171+ Download PNG
172+ </ButtonBase >
164173 </div >
165-
166- <ButtonBase
167- variant =" primary"
168- classicon =" i-lucide:download"
169- :disabled =" !imgLoaded"
170- @click =" downloadCard"
171- >
172- Download PNG
173- </ButtonBase >
174174 </div >
175175 </Modal >
176176</template >
0 commit comments