Skip to content

Commit 877236c

Browse files
authored
Bugfix: Hover effect in balance display (#1904)
1 parent 0a5c11c commit 877236c

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

src/cryptoadvance/specter/static/styles.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,6 @@ th{
749749
font-weight: inherit;
750750
border-bottom: 3px solid var(--cmap-bg-lightest);
751751
}
752-
tbody tr:not(.nohover):hover{
753-
background: rgba(255,255,255,0.03);
754-
color: #fff;
755-
}
756752
.xpub{
757753
max-width: 300px;
758754
}

src/cryptoadvance/specter/templates/base.jinja

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
border-right: 0;
3939
{% endif %}
4040
}
41+
.tr-hover:hover {
42+
background: rgba(255,255,255,0.03);
43+
}
4144
</style>
4245
<script type="text/javascript" src="{{ url_for('static', filename='helpers.js') }}"></script>
4346
{% include "includes/helpers.jinja" %}
@@ -140,10 +143,9 @@
140143
<br><br>
141144
{% else %}
142145
<h2 style="font-size: 1.6em; line-height: .5em; margin-top: 1em;">{{ _('Getting Started') }}</h2><br>
143-
144146
<table style="width: 90%; margin: auto;">
145147
<tbody>
146-
<tr>
148+
<tr class="tr-hover">
147149
<td>
148150
<img src="{{ url_for('static', filename='img/checkbox-' + ('un' if not specter.chain else '') + 'tick.svg') }}" width="30px">
149151
</td>
@@ -204,7 +206,7 @@
204206
{% endif %}
205207
</td>
206208
</tr>
207-
<tr>
209+
<tr class="tr-hover">
208210
<td>
209211
<img src="{{ url_for('static', filename='img/checkbox-' + ('un' if not (specter.device_manager.devices | length) else '') + 'tick.svg') }}" width="30px">
210212
</td>
@@ -216,7 +218,7 @@
216218
<td style="text-align: left;">
217219
</td>
218220
</tr>
219-
<tr>
221+
<tr class="tr-hover">
220222
<td>
221223
<img src="{{ url_for('static', filename='img/checkbox-' + ('un' if not (specter.wallet_manager.wallets | length) else '') + 'tick.svg') }}" width="30px">
222224
</td>
@@ -229,7 +231,7 @@
229231
</td>
230232
</tr>
231233
{% if specter.chain == 'main' %}
232-
<tr>
234+
<tr class="tr-hover">
233235
<td>
234236
<img src="{{ url_for('static', filename='img/ghost_3d.png')}}" width="30px">
235237
</td>

src/cryptoadvance/specter/templates/device/device.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
.btn {
2727
margin-bottom: 5px;
2828
}
29+
tr:hover {
30+
background: rgba(255,255,255,0.03);
31+
}
2932
</style>
3033
<h1 id="title">{{ device.name }}</h1>
3134
{% from 'components/editable_title.jinja' import editable_title %}

src/cryptoadvance/specter/templates/includes/tx-table.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,15 @@ <h1>{{ _("Export transactions to CSV") }}</h1>
381381
</th>
382382
</tr>
383383
</thead>
384-
<tr id="feedback-row" class="hidden nohover">
384+
<tr id="feedback-row" class="hidden">
385385
<td id="feedback-row-content">
386386
<div id="rescan-hint" class="hidden">
387387
<p>{{_('Is this not a fresh wallet? Did you expect transactions here? Then click') }} &#128071; {{_('to find them') }}</p>
388388
<a id="go-to-rescan-btn" href="{{ url_for('wallets_endpoint.settings', wallet_alias=wallet_alias, rescan_blockchain=True) }}" class="go-to-rescan-btn btn">Go to blockchain rescan</a>
389389
</div>
390390
</td>
391391
</tr>
392-
<tr id="empty-row" class="hidden nohover">
392+
<tr id="empty-row" class="hidden">
393393
<td id="empty-row-cell" colspan="9"></td>
394394
</tr>
395395
<tr class="summary-row hidden">

0 commit comments

Comments
 (0)