{isFetched ? (
diff --git a/src/pages/Transaction/TransactionCellScript/styled.tsx b/src/pages/Transaction/TransactionCellScript/styled.tsx
index 495ccdc4a..e4e69bef2 100644
--- a/src/pages/Transaction/TransactionCellScript/styled.tsx
+++ b/src/pages/Transaction/TransactionCellScript/styled.tsx
@@ -1,3 +1,5 @@
+import { Tabs } from 'antd'
+import TabPane from 'antd/lib/tabs/TabPane'
import styled from 'styled-components'
export const TransactionDetailContainer = styled.div`
@@ -18,6 +20,7 @@ export const TransactionDetailItem = styled.div<{ selected?: boolean }>`
font-weight: 600;
font-size: 16px;
align-items: center;
+ white-space: pre-wrap;
@media (max-width: 750px) {
margin-top: 5px;
@@ -73,6 +76,43 @@ export const TransactionDetailCapacityUsage = styled(TransactionDetailItem)`
}
`
+export const TransactionCellDetailTab = styled(Tabs)`
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ width: 100%;
+ background-color: #fff;
+ border-radius: 6px 6px 0 0;
+
+ /* stylelint-disable-next-line selector-class-pattern */
+ .ant-tabs-nav-operations {
+ display: none !important;
+ }
+
+ /* stylelint-disable-next-line selector-class-pattern */
+ .ant-tabs-tab.ant-tabs-tab-active {
+ /* stylelint-disable-next-line selector-class-pattern */
+ .ant-tabs-tab-btn {
+ color: var(--primary-color);
+ }
+ }
+
+ /* stylelint-disable-next-line selector-class-pattern */
+ .ant-tabs-nav .ant-tabs-ink-bar {
+ background: linear-gradient(to right, var(--primary-color) 100%, transparent 100%);
+ height: 3px;
+ bottom: 3px;
+ }
+`
+
+export const TransactionCellDetailTitle = styled.span`
+ font-size: 16px;
+`
+
+export const TransactionCellDetailPane = styled(TabPane)`
+ color: #333;
+`
+
export const TransactionCellDetailPanel = styled.div`
width: 100%;
font-weight: 500;
@@ -92,11 +132,7 @@ export const TransactionCellDetailPanel = styled.div`
}
.transactionDetailModalClose {
- flex: 1;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- padding-bottom: 17px;
+ padding: 17px 0 17px 17px;
> img {
cursor: pointer;
@@ -105,7 +141,7 @@ export const TransactionCellDetailPanel = styled.div`
}
@media (max-width: 750px) {
- padding-bottom: 15px;
+ padding: 15px 0 15px 15px;
> img {
width: 12px;