Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make buttons actually work and fix css for them
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent ef03797 commit 05f2d1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/ReportCard.tsx
Expand Up @@ -60,12 +60,14 @@ export default function (props: ReportCardProps) {
<HStack
pos="absolute"
top="50%"
transform="translateY(-50%)"
transform="translate(5%, -50%)"
w="90%"
zIndex="1"
>
<Button
borderRadius="50%"
h="16"
onClick={() => setAttachmentIdx(attachmentIdx - 1)}
visibility={attachmentIdx > 0 ? "visible" : "hidden"}
w="16"
>
Expand All @@ -86,6 +88,7 @@ export default function (props: ReportCardProps) {
<Button
borderRadius="50%"
h="16"
onClick={() => setAttachmentIdx(attachmentIdx + 1)}
visibility={
props.attachments.length > attachmentIdx + 1
? "visible"
Expand Down

0 comments on commit 05f2d1e

Please sign in to comment.