Skip to content

Commit eec11b3

Browse files
committed
feat: TLink card viewer enhancements
1 parent ee71819 commit eec11b3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

javascript/tokenscript-viewer/src/components/common/card-view/card-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class CardView {
2222
</iframe>
2323
</div>
2424
<div class="action-bar" style={{display: "none"}}>
25-
<button class="action-btn btn btn-primary"></button>
25+
<button class="ts-action-button action-btn btn btn-primary"></button>
2626
</div>
2727
</div>
2828
)

javascript/tokenscript-viewer/src/components/viewers/tlink/tlink-card-viewer.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ body, action-overflow-modal .popover-container {
1313
}
1414

1515
.mooar-header {
16-
height: 45px;
17-
margin: 5px 15px 0;
16+
height: 34px;
17+
margin: 0 15px 0;
1818
display: flex;
1919
align-items: center;
2020
}
@@ -26,13 +26,13 @@ body, action-overflow-modal .popover-container {
2626
}
2727

2828
.mooar-header .text {
29-
font-size: 16px;
29+
font-size: 14px;
3030
font-weight: 500;
3131
color: #fff;
3232
}
3333

3434
.mooar-header .header-icon {
35-
height: 24px !important;
35+
height: 20px !important;
3636
padding-left: 8px;
3737
}
3838

@@ -106,7 +106,7 @@ card-view .card-container {
106106
opacity: 0.6 !important;
107107
}
108108

109-
.mooar-viewer .btn-primary, .mooar-viewer .btn-featured {
109+
/*.mooar-viewer .btn-primary, .mooar-viewer .btn-featured {
110110
background: linear-gradient(106.84deg, rgb(255, 140, 74) 6.22%, rgb(255, 96, 95) 90.19%);
111111
border: none;
112112
}
@@ -145,7 +145,7 @@ card-view .card-container {
145145
146146
.mooar-viewer .more-actions-btn:hover {
147147
background: rgba(194, 140, 109, 0.06);
148-
}
148+
}*/
149149

150150
card-view .action-bar {
151151
height: auto !important;

javascript/tokenscript-viewer/src/components/viewers/tlink/tlink-card-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class TlinkCardViewer {
149149
</a>
150150
<div class="mooar-header-right">
151151
{/*<share-to-tg-button/>*/}
152-
{this.tokenScript && <security-status tokenScript={this.tokenScript} size="small" />}
152+
{this.tokenScript && <security-status tokenScript={this.tokenScript} size="x-small" />}
153153
</div>
154154
</div>
155155
<card-view ref={(el: HTMLElement) => this.mainCardView = el}></card-view>

0 commit comments

Comments
 (0)