Make buttons actually work and fix css for them

This commit is contained in:
regalijan 2023-10-19 16:50:46 -04:00
parent ef03797462
commit 05f2d1e732
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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"
>
@ -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"