@rpg-engine/long-bow 0.8.172 → 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.172",
3
+ "version": "0.8.174",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -14,11 +14,11 @@ const Container = styled.div`
14
14
 
15
15
  .rpgui-content ::-webkit-scrollbar,
16
16
  .rpgui-content::-webkit-scrollbar {
17
- width: 25px !important;
17
+ width: 12px !important;
18
18
  }
19
19
 
20
20
  .rpgui-content ::-webkit-scrollbar-track,
21
21
  .rpgui-content::-webkit-scrollbar-track {
22
- background-size: 25px 60px !important;
22
+ background-size: 12px 60px !important;
23
23
  }
24
24
  `;
@@ -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,31 +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;
297
295
 
298
- /* Custom scrollbar styling */
299
296
  &::-webkit-scrollbar {
300
- width: 8px;
301
- background-color: rgba(0, 0, 0, 0.2);
297
+ width: 6px;
298
+ }
299
+ &::-webkit-scrollbar-track {
300
+ background: rgba(0, 0, 0, 0.2);
302
301
  border-radius: 4px;
303
302
  }
304
-
305
303
  &::-webkit-scrollbar-thumb {
306
- background-color: rgba(255, 255, 255, 0.2);
304
+ background: #f59e0b;
307
305
  border-radius: 4px;
308
-
306
+
309
307
  &:hover {
310
- background-color: rgba(255, 255, 255, 0.3);
308
+ background: #fbbf24;
311
309
  }
312
310
  }
313
-
314
- /* Firefox scrollbar styling */
315
- scrollbar-width: thin;
316
- scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.2);
317
311
  `;
318
312
 
319
313
  const EmptyCart = styled.div`
@@ -330,20 +324,20 @@ const EmptyCart = styled.div`
330
324
  const CartItemRow = styled.div`
331
325
  display: flex;
332
326
  align-items: center;
333
- gap: 1rem;
334
- padding: 1rem;
327
+ gap: 0.75rem;
328
+ padding: 0.5rem 0.75rem;
335
329
  background: rgba(0, 0, 0, 0.2);
336
330
  border-radius: 4px;
337
331
  `;
338
332
 
339
333
  const ItemIconContainer = styled.div`
340
- width: 32px;
341
- height: 32px;
334
+ width: 24px;
335
+ height: 24px;
342
336
  display: flex;
343
337
  align-items: center;
344
338
  justify-content: center;
345
339
  border-radius: 4px;
346
- padding: 4px;
340
+ padding: 2px;
347
341
  `;
348
342
 
349
343
  const ItemDetails = styled.div`
@@ -355,26 +349,31 @@ const ItemDetails = styled.div`
355
349
 
356
350
  const ItemName = styled.div`
357
351
  font-family: 'Press Start 2P', cursive;
358
- font-size: 0.875rem;
352
+ font-size: 0.65rem;
359
353
  color: #ffffff;
360
354
  `;
361
355
 
362
356
  const ItemInfo = styled.div`
363
357
  display: flex;
364
358
  align-items: center;
365
- gap: 0.5rem;
359
+ gap: 0.4rem;
366
360
  font-family: 'Press Start 2P', cursive;
367
- font-size: 0.75rem;
361
+ font-size: 0.55rem;
368
362
  color: #fef08a;
369
363
  `;
370
364
 
371
365
  const Footer = styled.div`
372
366
  display: flex;
373
367
  flex-direction: column;
374
- gap: 1.5rem;
375
- padding-top: 1.5rem;
368
+ gap: 1rem;
369
+ padding-top: 1rem;
376
370
  border-top: 1px solid rgba(255, 255, 255, 0.1);
377
371
  flex-shrink: 0;
372
+
373
+ @media (max-width: 600px) {
374
+ gap: 0.75rem;
375
+ padding-top: 0.75rem;
376
+ }
378
377
  `;
379
378
 
380
379
  const TotalInfo = styled.div`
@@ -439,19 +438,22 @@ const DCNudge = styled.div`
439
438
  font-size: 0.45rem;
440
439
  color: #fbbf24;
441
440
  transition: background 0.15s;
441
+ line-height: 1.4;
442
+ flex-wrap: wrap;
442
443
 
443
444
  &:hover {
444
445
  background: rgba(245, 158, 11, 0.18);
445
446
  }
446
447
 
447
448
  svg { flex-shrink: 0; font-size: 0.7rem; }
448
- span { flex: 1; }
449
+ span { flex: 1; min-width: 140px; }
449
450
  `;
450
451
 
451
452
  const DCNudgeLink = styled.span`
452
453
  color: #f59e0b;
453
454
  white-space: nowrap;
454
455
  text-decoration: underline;
456
+ flex: 0 0 auto !important;
455
457
  `;
456
458
 
457
459
  const ErrorMessage = styled.div`
@@ -464,12 +466,12 @@ const ErrorMessage = styled.div`
464
466
  const MetadataInfo = styled.div`
465
467
  display: flex;
466
468
  align-items: center;
467
- margin-top: 0.5rem;
468
- gap: 0.5rem;
469
- font-size: 0.75rem;
469
+ margin-top: 0.25rem;
470
+ gap: 0.4rem;
471
+ font-size: 0.55rem;
470
472
  color: #a3e635;
471
473
  background: rgba(163, 230, 53, 0.1);
472
- padding: 0.25rem 0.5rem;
474
+ padding: 0.2rem 0.4rem;
473
475
  border-radius: 4px;
474
476
  `;
475
477
 
@@ -489,7 +491,7 @@ const MetadataValue = styled.div`
489
491
 
490
492
  const CartMeta = styled.div`
491
493
  font-family: 'Press Start 2P', cursive;
492
- font-size: 0.75rem;
494
+ font-size: 0.55rem;
493
495
  color: #ffffff;
494
496
  opacity: 0.8;
495
497
  margin-top: 0.25rem;
@@ -152,9 +152,6 @@ const CardsRow = styled.div`
152
152
  overflow-x: auto;
153
153
  padding-bottom: 0.25rem;
154
154
 
155
- &::-webkit-scrollbar { height: 4px; background: rgba(0,0,0,0.2); }
156
- &::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 2px; }
157
-
158
155
  @media (max-width: 950px) {
159
156
  flex-direction: column;
160
157
  overflow-x: unset;
@@ -190,9 +190,6 @@ const ItemsList = styled.div`
190
190
  max-width: 340px;
191
191
  max-height: 200px;
192
192
  overflow-y: auto;
193
-
194
- &::-webkit-scrollbar { width: 4px; background: rgba(0,0,0,0.2); }
195
- &::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 2px; }
196
193
  `;
197
194
 
198
195
  const SuccessItem = styled.div`
@@ -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`
@@ -544,7 +544,6 @@ const MainContent = styled.div`
544
544
  const TabContent = styled.div`
545
545
  flex: 1;
546
546
  overflow-y: auto;
547
- padding-right: 0.5rem;
548
547
  `;
549
548
 
550
549
  const Footer = 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`
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import styled from 'styled-components';
3
3
  import { Dropdown, IOptionsProps } from '../../Dropdown';
4
4
  import { SearchBar } from '../SearchBar/SearchBar';
5
- import { customScrollbarCSS } from '../CustomScrollbar';
6
5
 
7
6
  interface IScrollableContentProps<T> {
8
7
  items: T[];
@@ -128,7 +127,6 @@ const Content = styled.div<{ $gridColumns: number; $maxHeight: string }>`
128
127
  overflow-y: auto;
129
128
  overflow-x: hidden;
130
129
 
131
- ${customScrollbarCSS}
132
130
 
133
131
  &.grid {
134
132
  display: grid;