@@ -61,7 +61,7 @@ function format(num: number) {
6161
6262<template >
6363 <div class =" inventoryBox" >
64- <h1 class =" title" :data-content = " `Inventory of ${getPlayerName()}` " >
64+ <h1 class =" title" >
6565 Inventory of {{getPlayerName()}}
6666 </h1 >
6767 <div class =" container" >
@@ -70,10 +70,10 @@ function format(num: number) {
7070 <img v-if =" item.rarity > 0 && item.subCount > 0"
7171 class =" image"
7272 :src =" getImageUrl(item.petalId, item.rarity - 1)" />
73- <span v-if =" item.count > 0" class =" tag one" :data-content = " `x${format(item.count)}` " >
73+ <span v-if =" item.count > 0" class =" tag one" >
7474 x{{format(item.count)}}
7575 </span >
76- <span v-if =" item.subCount > 0" class =" tag two" :data-content = " `x${format(item.subCount)}` " >
76+ <span v-if =" item.subCount > 0" class =" tag two" >
7777 x{{format(item.subCount)}}
7878 </span >
7979 </div >
@@ -101,13 +101,8 @@ function format(num: number) {
101101 z-index : 1 ;
102102 margin-left : 50px ;
103103 margin-right : 50px ;
104- }
105- .title ::before {
106- position : absolute ;
107- content : attr (data-content );
108- color : transparent ;
109- -webkit-text-stroke : 2.5px black ;
110- z-index : -1 ;
104+ paint-order : stroke fill ;
105+ -webkit-text-stroke : 0.1em black ;
111106}
112107.container {
113108 display : flex ;
@@ -131,14 +126,8 @@ function format(num: number) {
131126 color : white ;
132127 rotate : 20deg ;
133128 font-size : 12px ;
134- }
135- .tag ::before {
136- position : absolute ;
137- content : attr (data-content );
138- color : transparent ;
139129 paint-order : stroke fill ;
140130 -webkit-text-stroke : 0.1em black ;
141- z-index : -1 ;
142131}
143132.tag.one {
144133 left : 35px ;
@@ -154,12 +143,7 @@ function format(num: number) {
154143 z-index : 1 ;
155144 margin-right : 3px ;
156145 margin-bottom : 3px ;
157- }
158- .hint ::before {
159- position : absolute ;
160- content : " Generated with AyuScript" ;
161- color : transparent ;
162- -webkit-text-stroke : 1.25px black ;
163- z-index : -1 ;
146+ paint-order : stroke fill ;
147+ -webkit-text-stroke : 0.1em black ;
164148}
165149 </style >
0 commit comments