Skip to content

Commit

Permalink
fix: events style mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr committed Jan 12, 2024
1 parent 938070a commit 83dcd69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/app/txid/[txId]/Events.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { useColorMode } from '@chakra-ui/react';
import { Code } from '@chakra-ui/react'
import React, { FC, Fragment } from 'react';
import { IconType } from 'react-icons';
import { TbAlignLeft, TbArrowRight, TbPlus, TbTrash } from 'react-icons/tb';
Expand Down Expand Up @@ -189,9 +189,9 @@ const getName = (event: TransactionEvent) => {
return `${microToStacksFormatted(event.stx_lock_event.locked_amount)} STX`;
case 'smart_contract_log':
return (
<pre style={{ whiteSpace: 'pre-wrap' }}>
<Code style={{ whiteSpace: 'pre-wrap' }} bg={'transparent'} fontSize={'xs'} color={'secondaryText'}>
{handleContractLogHex(event.contract_log.value.repr, event.contract_log.value.hex)}
</pre>
</Code>
);
case 'stx_asset':
return event.asset?.value
Expand Down Expand Up @@ -230,8 +230,8 @@ const Item: React.FC<{ event: TransactionEvent }> = ({ event }) => {
return (
<TwoColsListItem
icon={
<Circle size={10}>
<Icon as={getEventIcon(event)} size={4} />
<Circle size={4.5}>
<Icon as={getEventIcon(event)} size={2.5} />
</Circle>
}
leftContent={{
Expand Down Expand Up @@ -264,7 +264,7 @@ const Item: React.FC<{ event: TransactionEvent }> = ({ event }) => {
</>
),
}}
rightContent={{ title: event.event_index }}
rightContent={{ title: <Caption fontWeight={'semibold'}>{event.event_index}</Caption> }}
/>
);
};
Expand Down
6 changes: 3 additions & 3 deletions src/app/txid/[txId]/TxDetails/BlockHeight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ function BlockHeightBase({ tx }: { tx: Transaction | MempoolTransaction }) {
<KeyValueHorizontal
label={'Block height'}
value={
<>
<Flex alignItems={['flex-start', 'flex-start', 'center']} gap={2} direction={['column', 'column', 'row']}>
<BtcStxBlockLinks
btcBlockHeight={block?.burn_block_height}
stxBlockHeight={tx.block_height}
stxBlockHash={tx.block_hash}
/>
<Box ml="16px">
<Box>
{isOnTouchScreen ? (
<Flex alignItems="center">
<Icon as={AiOutlineClockCircle} size="16px" mr="4px" />
Expand All @@ -61,7 +61,7 @@ function BlockHeightBase({ tx }: { tx: Transaction | MempoolTransaction }) {
</Tooltip>
)}
</Box>
</>
</Flex>
}
copyValue={readableTs}
/>
Expand Down

0 comments on commit 83dcd69

Please sign in to comment.