|
@@ -60,13 +60,17 @@
|
|
|
<span
|
|
|
class="name"
|
|
|
:class="{
|
|
|
- wide: item['名称'].length > 11
|
|
|
+ wide: item['名称'].length > 11,
|
|
|
+ smallFontSize: item['名称'].length > 18
|
|
|
}"
|
|
|
:title="item['名称']"
|
|
|
v-html="item['名称']"
|
|
|
/>
|
|
|
<img
|
|
|
class=""
|
|
|
+ :style="{
|
|
|
+ transform: item['名称'] === '地狮角石' ? 'translate(0, 15%)' : '',
|
|
|
+ }"
|
|
|
:src="getRelicThumbUrl(idx)"
|
|
|
alt=""
|
|
|
draggable="false"
|
|
@@ -448,9 +452,12 @@ const handleScroll = debounce(() => {
|
|
|
padding-right: 0.7em;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
+ >.name.smallFontSize{
|
|
|
+ padding-right: calc(20 / @page-height-design-px * 100vh * 0.83);;
|
|
|
+ font-size: calc(14 / @page-height-design-px * 100vh * 0.83);
|
|
|
+ }
|
|
|
>img {
|
|
|
position: absolute;
|
|
|
- left: 0;
|
|
|
left: 50%;
|
|
|
translate: -50% 0;
|
|
|
object-fit: contain;
|