Skip to content

Commit 5673c6d

Browse files
committed
feat(web): tweak ore graph detail style
1 parent 1b589ac commit 5673c6d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

web/src/assets/base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ svg {
4040
}
4141
}
4242

43+
.font-tnum {
44+
font-feature-settings: "tnum";
45+
}
46+
4347
.image-pixelated {
4448
image-rendering: pixelated;
4549
}

web/src/components/PlayerOreGraph.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
>
2525
<dl v-show="isExpanded" class="relative text-sm flex flex-col">
2626
<div class="flex-none order-first h-10 px-3 flex items-center">
27-
<dt class="order-last ml-auto">{{ t('nyaa.player_ore_graph.item_name.total') }}</dt>
28-
<dd>{{ total }}</dd>
27+
<dt>{{ t('nyaa.player_ore_graph.item_name.total') }}</dt>
28+
<dd class="ml-auto font-tnum">{{ total }}</dd>
2929
</div>
3030
<div
3131
v-for="([ore, value, order]) of graphData"
3232
:key="ore"
3333
class="flex-none h-10 mt-px px-3 flex items-center"
3434
:style="{order}"
3535
>
36-
<dt class="order-last ml-auto -mr-1 px-1 py-0.5 _text-bg rounded">{{ t(`nyaa.player_ore_graph.item_name.${ore}_ore`) }}</dt>
37-
<dd class="-ml-1 px-1 py-0.5 _text-bg rounded">{{ value }}</dd>
36+
<dt class="-ml-1 px-1 py-0.5 _text-bg rounded">{{ t(`nyaa.player_ore_graph.item_name.${ore}_ore`) }}</dt>
37+
<dd class="ml-auto -mr-1 px-1 py-0.5 font-tnum _text-bg rounded">{{ value }}</dd>
3838
</div>
3939
</dl>
4040
</transition>
@@ -109,6 +109,6 @@
109109
[data-type=nether_quartz] {background: #eae5de;}
110110
111111
._text-bg {
112-
background: rgba(255, 255, 255, 0.5);
112+
background: rgba(255, 255, 255, 0.6);
113113
}
114114
</style>

web/src/views/Player.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,4 @@
199199
width: 300px;
200200
}
201201
}
202-
203-
.font-tnum {
204-
font-feature-settings: "tnum";
205-
}
206202
</style>

0 commit comments

Comments
 (0)