Make buttons actually work and fix css for them
This commit is contained in:
parent
ef03797462
commit
05f2d1e732
@ -60,12 +60,14 @@ export default function (props: ReportCardProps) {
|
|||||||
<HStack
|
<HStack
|
||||||
pos="absolute"
|
pos="absolute"
|
||||||
top="50%"
|
top="50%"
|
||||||
transform="translateY(-50%)"
|
transform="translate(5%, -50%)"
|
||||||
|
w="90%"
|
||||||
zIndex="1"
|
zIndex="1"
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
borderRadius="50%"
|
borderRadius="50%"
|
||||||
h="16"
|
h="16"
|
||||||
|
onClick={() => setAttachmentIdx(attachmentIdx - 1)}
|
||||||
visibility={attachmentIdx > 0 ? "visible" : "hidden"}
|
visibility={attachmentIdx > 0 ? "visible" : "hidden"}
|
||||||
w="16"
|
w="16"
|
||||||
>
|
>
|
||||||
@ -86,6 +88,7 @@ export default function (props: ReportCardProps) {
|
|||||||
<Button
|
<Button
|
||||||
borderRadius="50%"
|
borderRadius="50%"
|
||||||
h="16"
|
h="16"
|
||||||
|
onClick={() => setAttachmentIdx(attachmentIdx + 1)}
|
||||||
visibility={
|
visibility={
|
||||||
props.attachments.length > attachmentIdx + 1
|
props.attachments.length > attachmentIdx + 1
|
||||||
? "visible"
|
? "visible"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user