@rpg-engine/long-bow 0.8.173 → 0.8.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.8.173",
3
+ "version": "0.8.174",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -163,9 +163,9 @@ export const CartView: React.FC<ICartViewProps> = ({
163
163
  atlasJSON={cartItem.item.metadataType === MetadataType.CharacterSkin ? characterAtlasJSON : atlasJSON}
164
164
  atlasIMG={cartItem.item.metadataType === MetadataType.CharacterSkin ? characterAtlasIMG : atlasIMG}
165
165
  spriteKey={cartItem.item.metadataType === MetadataType.CharacterSkin && cartItem.metadata?.selectedSkinTextureKey ? getSpriteKey(cartItem.metadata.selectedSkinTextureKey) : cartItem.item.texturePath}
166
- width={32}
167
- height={32}
168
- imgScale={2}
166
+ width={24}
167
+ height={24}
168
+ imgScale={1.5}
169
169
  centered
170
170
  />
171
171
  </ItemIconContainer>
@@ -256,9 +256,8 @@ const Container = styled.div`
256
256
  display: flex;
257
257
  flex-direction: column;
258
258
  width: 100%;
259
- height: 100%;
260
- gap: 1.5rem;
261
- padding: 1.5rem;
259
+ gap: 1rem;
260
+ padding: 1rem;
262
261
  `;
263
262
 
264
263
  const Header = styled.div`
@@ -289,11 +288,26 @@ const CloseButton = styled.div`
289
288
  const CartItems = styled.div`
290
289
  display: flex;
291
290
  flex-direction: column;
292
- gap: 1rem;
291
+ gap: 0.5rem;
293
292
  overflow-y: auto;
294
- flex: 1;
295
- min-height: 200px;
293
+ max-height: 250px;
296
294
  padding-right: 0.5rem;
295
+
296
+ &::-webkit-scrollbar {
297
+ width: 6px;
298
+ }
299
+ &::-webkit-scrollbar-track {
300
+ background: rgba(0, 0, 0, 0.2);
301
+ border-radius: 4px;
302
+ }
303
+ &::-webkit-scrollbar-thumb {
304
+ background: #f59e0b;
305
+ border-radius: 4px;
306
+
307
+ &:hover {
308
+ background: #fbbf24;
309
+ }
310
+ }
297
311
  `;
298
312
 
299
313
  const EmptyCart = styled.div`
@@ -310,20 +324,20 @@ const EmptyCart = styled.div`
310
324
  const CartItemRow = styled.div`
311
325
  display: flex;
312
326
  align-items: center;
313
- gap: 1rem;
314
- padding: 1rem;
327
+ gap: 0.75rem;
328
+ padding: 0.5rem 0.75rem;
315
329
  background: rgba(0, 0, 0, 0.2);
316
330
  border-radius: 4px;
317
331
  `;
318
332
 
319
333
  const ItemIconContainer = styled.div`
320
- width: 32px;
321
- height: 32px;
334
+ width: 24px;
335
+ height: 24px;
322
336
  display: flex;
323
337
  align-items: center;
324
338
  justify-content: center;
325
339
  border-radius: 4px;
326
- padding: 4px;
340
+ padding: 2px;
327
341
  `;
328
342
 
329
343
  const ItemDetails = styled.div`
@@ -335,26 +349,31 @@ const ItemDetails = styled.div`
335
349
 
336
350
  const ItemName = styled.div`
337
351
  font-family: 'Press Start 2P', cursive;
338
- font-size: 0.875rem;
352
+ font-size: 0.65rem;
339
353
  color: #ffffff;
340
354
  `;
341
355
 
342
356
  const ItemInfo = styled.div`
343
357
  display: flex;
344
358
  align-items: center;
345
- gap: 0.5rem;
359
+ gap: 0.4rem;
346
360
  font-family: 'Press Start 2P', cursive;
347
- font-size: 0.75rem;
361
+ font-size: 0.55rem;
348
362
  color: #fef08a;
349
363
  `;
350
364
 
351
365
  const Footer = styled.div`
352
366
  display: flex;
353
367
  flex-direction: column;
354
- gap: 1.5rem;
355
- padding-top: 1.5rem;
368
+ gap: 1rem;
369
+ padding-top: 1rem;
356
370
  border-top: 1px solid rgba(255, 255, 255, 0.1);
357
371
  flex-shrink: 0;
372
+
373
+ @media (max-width: 600px) {
374
+ gap: 0.75rem;
375
+ padding-top: 0.75rem;
376
+ }
358
377
  `;
359
378
 
360
379
  const TotalInfo = styled.div`
@@ -419,19 +438,22 @@ const DCNudge = styled.div`
419
438
  font-size: 0.45rem;
420
439
  color: #fbbf24;
421
440
  transition: background 0.15s;
441
+ line-height: 1.4;
442
+ flex-wrap: wrap;
422
443
 
423
444
  &:hover {
424
445
  background: rgba(245, 158, 11, 0.18);
425
446
  }
426
447
 
427
448
  svg { flex-shrink: 0; font-size: 0.7rem; }
428
- span { flex: 1; }
449
+ span { flex: 1; min-width: 140px; }
429
450
  `;
430
451
 
431
452
  const DCNudgeLink = styled.span`
432
453
  color: #f59e0b;
433
454
  white-space: nowrap;
434
455
  text-decoration: underline;
456
+ flex: 0 0 auto !important;
435
457
  `;
436
458
 
437
459
  const ErrorMessage = styled.div`
@@ -444,12 +466,12 @@ const ErrorMessage = styled.div`
444
466
  const MetadataInfo = styled.div`
445
467
  display: flex;
446
468
  align-items: center;
447
- margin-top: 0.5rem;
448
- gap: 0.5rem;
449
- font-size: 0.75rem;
469
+ margin-top: 0.25rem;
470
+ gap: 0.4rem;
471
+ font-size: 0.55rem;
450
472
  color: #a3e635;
451
473
  background: rgba(163, 230, 53, 0.1);
452
- padding: 0.25rem 0.5rem;
474
+ padding: 0.2rem 0.4rem;
453
475
  border-radius: 4px;
454
476
  `;
455
477
 
@@ -469,7 +491,7 @@ const MetadataValue = styled.div`
469
491
 
470
492
  const CartMeta = styled.div`
471
493
  font-family: 'Press Start 2P', cursive;
472
- font-size: 0.75rem;
494
+ font-size: 0.55rem;
473
495
  color: #ffffff;
474
496
  opacity: 0.8;
475
497
  margin-top: 0.25rem;
@@ -506,12 +506,12 @@ const HeaderRow = styled.div`
506
506
  align-items: center;
507
507
  justify-content: space-between;
508
508
  margin-bottom: 0.25rem;
509
+ padding-top: 10px;
510
+ padding-right: 12px;
509
511
  `;
510
512
 
511
513
  const CartButtonWrapper = styled.div`
512
514
  position: relative;
513
- margin-right: 0.5rem;
514
- margin-top: -16px;
515
515
  `;
516
516
 
517
517
  const CartBadge = styled.div`
@@ -46,6 +46,7 @@ const Bar = styled.div`
46
46
  @media (max-width: 950px) {
47
47
  flex-wrap: wrap;
48
48
  gap: 0.6rem;
49
+ padding: 0.6rem;
49
50
  }
50
51
  `;
51
52
 
@@ -53,6 +54,7 @@ const Signal = styled.div`
53
54
  display: flex;
54
55
  align-items: center;
55
56
  gap: 0.35rem;
57
+ justify-content: center;
56
58
  `;
57
59
 
58
60
  const SignalIcon = styled.span`