Skip to content

Commit 78e51c3

Browse files
committed
feat: Unify block status (property list) and miner info callouts style
1 parent cac5e8f commit 78e51c3

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

packages/neuron-ui/src/components/Overview/index.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,21 +284,27 @@ const Overview = ({
284284
<Callout target={minerInfoRef.current} hidden={!displayMinerInfo} onDismiss={hideMinerInfo} gapSpace={0}>
285285
<Stack tokens={{ padding: 15 }}>
286286
{defaultAddress ? (
287-
<Stack tokens={{ childrenGap: 15 }}>
287+
<Stack tokens={{ childrenGap: 15 }} styles={{ root: { padding: 5 } }}>
288288
<Stack tokens={{ childrenGap: 15 }}>
289-
<Text variant="medium">{t('overview.address')}</Text>
289+
<Text variant="small" style={{ fontWeight: 600 }}>
290+
{t('overview.address')}
291+
</Text>
290292
<Text variant="small" className="fixedWidth">
291293
{defaultAddress.address}
292294
</Text>
293295
</Stack>
294296
<Stack tokens={{ childrenGap: 15 }}>
295-
<Text variant="medium">{t('overview.code-hash')}</Text>
297+
<Text variant="small" style={{ fontWeight: 600 }}>
298+
{t('overview.code-hash')}
299+
</Text>
296300
<Text variant="small" className="fixedWidth">
297301
{codeHash}
298302
</Text>
299303
</Stack>
300304
<Stack tokens={{ childrenGap: 15 }}>
301-
<Text variant="medium">{t('overview.lock-arg')}</Text>
305+
<Text variant="small" style={{ fontWeight: 600 }}>
306+
{t('overview.lock-arg')}
307+
</Text>
302308
<Text variant="small" className="fixedWidth">
303309
{defaultAddress.identifier}
304310
</Text>

packages/neuron-ui/src/utils/loadTheme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ registerIcons({
5353
info: <InfoIcon size="16px" />,
5454
errorbadge: <AlertIcon size="16px" />,
5555
completed: <SuccessIcon size="16px" />,
56-
MiniCopy: <CopyIcon size="small" />,
56+
MiniCopy: <CopyIcon size="small" color={semanticColors.primaryButtonBackground} />,
5757
Search: <SearchIcon size="16px" color={semanticColors.menuIcon} />,
5858
FirstPage: <LinkTopIcon size="16px" color={semanticColors.menuIcon} style={{ transform: 'rotate(-90deg)' }} />,
5959
LastPage: <LinkBottomIcon size="16px" color={semanticColors.menuIcon} style={{ transform: 'rotate(-90deg)' }} />,

packages/neuron-ui/src/widgets/PropertyList/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import React from 'react'
2-
import { List } from 'office-ui-fabric-react'
2+
import { List, getTheme } from 'office-ui-fabric-react'
33
import styles from './PropertyList.module.scss'
44

5+
const theme = getTheme()
6+
57
export interface Property {
68
label: string
79
value: string | number | Element | React.ReactNode
@@ -18,15 +20,15 @@ const onRenderCell = (item?: Property & CellStyles) =>
1820
<div className={styles.propertyCell} style={{ height: item.height || 'auto' }} aria-label="property">
1921
<span
2022
className={styles.label}
21-
style={{ width: item.labelWidth || 'auto' }}
23+
style={{ width: item.labelWidth || 'auto', fontWeight: 600, fontSize: theme.fonts.small.fontSize }}
2224
title={item.label}
2325
aria-label={item.label}
2426
>
2527
{item.label}
2628
</span>
2729
<span
2830
className={styles.value}
29-
style={{ width: item.valueWidth || 'auto' }}
31+
style={{ width: item.valueWidth || 'auto', fontSize: theme.fonts.small.fontSize }}
3032
title={`${item.value}`}
3133
aria-label={item.label}
3234
>

0 commit comments

Comments
 (0)