@@ -122,17 +122,175 @@ exports[`Test Render Wakatime Card should render correctly with compact layout 1
122
122
data-testid = " lang-progress"
123
123
x = " 0"
124
124
y = " 0"
125
- width = " 6.6495 "
125
+ width = " 415.61699999999996 "
126
126
height = " 8"
127
127
fill = " #858585"
128
128
/>
129
129
130
130
<rect
131
131
mask = " url(#rect-mask)"
132
132
data-testid = " lang-progress"
133
- x = " 6.6495 "
133
+ x = " 415.61699999999996 "
134
134
y = " 0"
135
- width = " 0.465"
135
+ width = " 29.0625"
136
+ height = " 8"
137
+ fill = " #3178c6"
138
+ />
139
+
140
+
141
+ <g transform = " translate(25, 25)" >
142
+ <circle cx = " 5" cy = " 6" r = " 5" fill = " #858585" />
143
+ <text data-testid = " lang-name" x = " 15" y = " 10" class = ' lang-name' >
144
+ Other - 19 mins
145
+ </text >
146
+ </g >
147
+
148
+ <g transform = " translate(230, 25)" >
149
+ <circle cx = " 5" cy = " 6" r = " 5" fill = " #3178c6" />
150
+ <text data-testid = " lang-name" x = " 15" y = " 10" class = ' lang-name' >
151
+ TypeScript - 1 min
152
+ </text >
153
+ </g >
154
+
155
+
156
+ </svg >
157
+
158
+ </g >
159
+ </svg >
160
+ "
161
+ ` ;
162
+
163
+ exports [` Test Render Wakatime Card should render correctly with compact layout when langs_count is set 1` ] = `
164
+ "
165
+ <svg
166
+ width = " 495"
167
+ height = " 115"
168
+ viewBox = " 0 0 495 115"
169
+ fill = " none"
170
+ xmlns = " http://www.w3.org/2000/svg"
171
+ role = " img"
172
+ aria-labelledby = " descId"
173
+ >
174
+ <title id = " titleId" ></title >
175
+ <desc id = " descId" ></desc >
176
+ <style >
177
+ .header {
178
+ font : 600 18px ' Segoe UI' , Ubuntu , Sans - Serif ;
179
+ fill : #2f80ed ;
180
+ animation : fadeInAnimation 0.8s ease - in - out forwards ;
181
+ }
182
+ @supports(-moz-appearance: auto) {
183
+ /* Selector detects Firefox */
184
+ .header { font-size: 15.5px ; }
185
+ }
186
+
187
+
188
+ .stat {
189
+ font : 600 14px ' Segoe UI' , Ubuntu , " Helvetica Neue" , Sans - Serif ; fill : #434d58 ;
190
+ }
191
+ @supports(-moz-appearance: auto) {
192
+ /* Selector detects Firefox */
193
+ .stat { font-size:12px ; }
194
+ }
195
+ .stagger {
196
+ opacity : 0 ;
197
+ animation : fadeInAnimation 0.3s ease - in - out forwards ;
198
+ }
199
+ .rank-text {
200
+ font : 800 24px ' Segoe UI' , Ubuntu , Sans - Serif ; fill : #434d58 ;
201
+ animation : scaleInAnimation 0.3s ease - in - out forwards ;
202
+ }
203
+
204
+ .not_bold { font - weight : 400 }
205
+ .bold { font - weight : 700 }
206
+ .icon {
207
+ fill : #4c71f2 ;
208
+ display : none ;
209
+ }
210
+
211
+ .rank-circle-rim {
212
+ stroke : #2f80ed ;
213
+ fill : none ;
214
+ stroke - width : 6 ;
215
+ opacity : 0.2 ;
216
+ }
217
+ .rank-circle {
218
+ stroke : #2f80ed ;
219
+ stroke - dasharray : 250 ;
220
+ fill : none ;
221
+ stroke - width : 6 ;
222
+ stroke - linecap : round ;
223
+ opacity : 0.8 ;
224
+ transform - origin : - 10px 8px ;
225
+ transform : rotate (- 90deg );
226
+ animation : rankAnimation 1s forwards ease - in - out ;
227
+ }
228
+
229
+
230
+ .lang-name { font : 400 11px ' Segoe UI' , Ubuntu , Sans - Serif ; fill : #434d58 }
231
+
232
+
233
+
234
+
235
+ </style >
236
+
237
+
238
+
239
+ <rect
240
+ data-testid = " card-bg"
241
+ x = " 0.5"
242
+ y = " 0.5"
243
+ rx = " 4.5"
244
+ height = " 99%"
245
+ stroke = " #e4e2e2"
246
+ width = " 494"
247
+ fill = " #fffefe"
248
+ stroke-opacity = " 1"
249
+ />
250
+
251
+
252
+ <g
253
+ data-testid = " card-title"
254
+ transform = " translate(25, 35)"
255
+ >
256
+ <g transform = " translate(0, 0)" >
257
+ <text
258
+ x = " 0"
259
+ y = " 0"
260
+ class = " header"
261
+ data-testid = " header"
262
+ >Wakatime Stats</text >
263
+ </g >
264
+ </g >
265
+
266
+
267
+ <g
268
+ data-testid = " main-card-body"
269
+ transform = " translate(0, 55)"
270
+ >
271
+
272
+ <svg x = " 0" y = " 0" width = " 100%" >
273
+
274
+ <mask id = " rect-mask" >
275
+ <rect x = " 25" y = " 0" width = " 440" height = " 8" fill = " white" rx = " 5" />
276
+ </mask >
277
+
278
+ <rect
279
+ mask = " url(#rect-mask)"
280
+ data-testid = " lang-progress"
281
+ x = " 0"
282
+ y = " 0"
283
+ width = " 436.4025"
284
+ height = " 8"
285
+ fill = " #858585"
286
+ />
287
+
288
+ <rect
289
+ mask = " url(#rect-mask)"
290
+ data-testid = " lang-progress"
291
+ x = " 436.4025"
292
+ y = " 0"
293
+ width = " 30.503999999999998"
136
294
height = " 8"
137
295
fill = " #3178c6"
138
296
/>
0 commit comments