Skip to content

Commit

Permalink
更新 download.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
li-peifeng authored Dec 30, 2024
1 parent 8083fda commit bb224cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/home/previews/download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export const Download = (props: { openWith?: boolean }) => {
<Button colorScheme="accent" onClick={() => copyCurrentRawLink(true)}>
{t("home.toolbar.copy_link")}
</Button>
<Button as="a" href={objStore.raw_url} target="_blank">
{t("home.preview.download")}
</Button>
<Popover opened={pinned() || hover()} motionPreset="none">
<PopoverTrigger
as={IconButton}
Expand All @@ -49,14 +46,17 @@ export const Download = (props: { openWith?: boolean }) => {
<PopoverArrow />
<PopoverBody>
<Image
boxSize="200px"
boxSize="156px"
src={qrUrl()}
alt="下载链接二维码"
objectFit="cover"
/>
</PopoverBody>
</PopoverContent>
</Popover>
<Button as="a" href={objStore.raw_url} target="_blank">
{t("home.preview.download")}
</Button>
</HStack>
<Show when={props.openWith}>
<OpenWith />
Expand Down

0 comments on commit bb224cd

Please sign in to comment.