diff --git a/src/pages/Fiber/Channel/index.module.scss b/src/pages/Fiber/Channel/index.module.scss index e84dcc914..9d063904b 100644 --- a/src/pages/Fiber/Channel/index.module.scss +++ b/src/pages/Fiber/Channel/index.module.scss @@ -49,6 +49,10 @@ } } + .overview { + @extend %base-card; + } + .id { overflow: hidden; @@ -60,8 +64,9 @@ } .transactions { - margin-top: 16px; - border-top: 1px solid #ccc; + @extend %base-card; + + margin-top: 8px; padding-top: 16px; h3 { @@ -71,12 +76,15 @@ } .peers { + margin-top: 8px; display: flex; flex-wrap: wrap; .local, .remote { - flex: 1 0 50%; + @extend %base-card; + + flex: 1 0 40%; border: 1px solid #ccc; padding: 32px; diff --git a/src/pages/Fiber/Channel/index.tsx b/src/pages/Fiber/Channel/index.tsx index 71139de5f..d5787feda 100644 --- a/src/pages/Fiber/Channel/index.tsx +++ b/src/pages/Fiber/Channel/index.tsx @@ -54,48 +54,50 @@ const Channel = () => {
-
-
{t('fiber.channel.channel_id')}
-
- {channel.channelId} - -
-
-
-
{t('fiber.channel.state')}
-
{channel.stateName}
-
+
+
+
{t('fiber.channel.channel_id')}
+
+ {channel.channelId} + +
+
+
+
{t('fiber.channel.state')}
+
{channel.stateName}
+
-
-
{t('fiber.channel.balance')}
-
{`${localeNumberString( - shannonToCkb(totalBalance.toFormat({ groupSeparator: '' })), - )} CKB(Total) | ${localeNumberString( - shannonToCkb(totalTLCBalance.toFormat({ groupSeparator: '' })), - )} CKB(TLC)`}
-
-
-
{t('fiber.channel.open_time')}
-
- -
-
-
-
{t('fiber.channel.update_time')}
-
- -
-
- {channel.shutdownAt ? (
-
{t('fiber.channel.shutdown_time')}
+
{t('fiber.channel.balance')}
+
{`${localeNumberString( + shannonToCkb(totalBalance.toFormat({ groupSeparator: '' })), + )} CKB(Total) | ${localeNumberString( + shannonToCkb(totalTLCBalance.toFormat({ groupSeparator: '' })), + )} CKB(TLC)`}
+
+
+
{t('fiber.channel.open_time')}
+
+ +
+
+
+
{t('fiber.channel.update_time')}
- +
- ) : null} + {channel.shutdownAt ? ( +
+
{t('fiber.channel.shutdown_time')}
+
+ +
+
+ ) : null} +