@visns-studio/visns-components 5.6.6 → 5.6.8

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.
@@ -285,76 +285,129 @@
285
285
 
286
286
  .dropzone__files {
287
287
  list-style: none;
288
- padding: 0;
288
+ padding: 16px 0;
289
289
  margin: 0;
290
290
  box-sizing: border-box;
291
+ display: grid;
292
+ grid-template-columns: repeat(2, 1fr); /* 2 columns by default */
293
+ gap: 16px;
294
+
295
+ /* Responsive grid layout */
296
+ @media (max-width: 768px) {
297
+ grid-template-columns: repeat(1, 1fr); /* 1 column on small screens */
298
+ }
291
299
 
292
300
  li {
293
- width: 100%;
294
- display: block;
301
+ display: flex;
302
+ align-items: center;
303
+ justify-content: space-between;
295
304
  background: rgba(var(--primary-rgb), 0.05);
296
305
  color: var(--primary-color);
297
- border-radius: 3px;
298
- transition: background 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
299
- outline: none;
306
+ border-radius: 6px;
307
+ transition: all 0.2s ease;
300
308
  cursor: pointer;
301
- border-radius: 3px;
302
- padding: 0.5rem;
309
+ padding: 12px 16px;
303
310
  box-sizing: border-box;
304
311
  position: relative;
305
312
  border: 1px solid rgba(var(--primary-rgb), 0.15);
306
- line-height: 1;
307
- font-size: 0.85rem;
308
- margin-bottom: 5px;
313
+ line-height: 1.4;
314
+ font-size: 0.9rem;
315
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
316
+
317
+ &:hover {
318
+ transform: translateY(-2px);
319
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
320
+ background: rgba(var(--primary-rgb), 0.08);
321
+ }
309
322
 
310
- svg {
311
- position: relative;
312
- top: -2px;
313
- color: rgba(var(--secondary-rgb), 1);
314
- float: left;
315
- stroke-width: 1;
316
- line-height: 1;
317
- margin-right: 5px;
323
+ .file-info {
324
+ display: flex;
325
+ align-items: center;
326
+ flex: 1;
327
+ overflow: hidden;
328
+
329
+ svg {
330
+ color: var(--secondary-color);
331
+ flex-shrink: 0;
332
+ margin-right: 12px;
333
+ }
334
+
335
+ .filename {
336
+ white-space: nowrap;
337
+ overflow: hidden;
338
+ text-overflow: ellipsis;
339
+ }
318
340
  }
319
341
 
320
342
  button {
321
- position: relative;
322
- float: right;
323
343
  background: none;
324
344
  outline: none;
325
345
  border: none;
326
- z-index: 200;
346
+ padding: 6px;
347
+ margin-left: 8px;
348
+ border-radius: 4px;
327
349
  cursor: pointer;
350
+ display: flex;
351
+ align-items: center;
352
+ justify-content: center;
353
+ transition: background-color 0.2s ease;
354
+
355
+ &:hover {
356
+ background-color: rgba(var(--primary-rgb), 0.1);
357
+ }
328
358
 
329
359
  svg {
330
- font-size: 1em;
331
360
  color: var(--primary-color);
332
- line-height: 1;
333
361
  }
334
362
  }
335
363
  }
336
-
337
- li:hover {
338
- background: rgba(var(--secondary-color-rgb, 0.65));
339
- }
340
364
  }
341
365
 
342
366
  .sortlist {
343
- display: flex;
344
- flex-wrap: wrap;
345
- gap: 20px;
346
- padding: 0;
367
+ display: grid;
368
+ grid-template-columns: repeat(4, 1fr); /* 4 columns by default */
369
+ gap: 16px;
370
+ padding: 16px 0;
347
371
  list-style: none;
348
372
 
373
+ /* Responsive grid layout */
374
+ @media (max-width: 1200px) {
375
+ grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
376
+ }
377
+
378
+ @media (max-width: 768px) {
379
+ grid-template-columns: repeat(2, 1fr); /* 2 columns on small screens */
380
+ }
381
+
382
+ @media (max-width: 480px) {
383
+ grid-template-columns: repeat(
384
+ 1,
385
+ 1fr
386
+ ); /* 1 column on very small screens */
387
+ }
388
+
349
389
  li {
350
390
  position: relative;
391
+ aspect-ratio: 4/3;
392
+ border-radius: 8px;
393
+ overflow: hidden;
394
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
395
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
396
+ cursor: pointer;
397
+
398
+ &:hover {
399
+ transform: translateY(-2px);
400
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
401
+ }
351
402
 
352
403
  .sortimg {
353
- width: 300px;
354
- height: 300px;
404
+ width: 100%;
405
+ height: 100%;
355
406
  border-radius: 8px;
356
407
  overflow: hidden;
357
408
  position: relative;
409
+ display: flex;
410
+ flex-direction: column;
358
411
 
359
412
  img {
360
413
  width: 100%;
@@ -376,6 +429,21 @@
376
429
  background: rgba(255, 255, 255, 1);
377
430
  }
378
431
  }
432
+
433
+ .filename {
434
+ position: absolute;
435
+ bottom: 0;
436
+ left: 0;
437
+ right: 0;
438
+ padding: 8px;
439
+ background-color: rgba(0, 0, 0, 0.6);
440
+ color: white;
441
+ font-size: 0.8rem;
442
+ white-space: nowrap;
443
+ overflow: hidden;
444
+ text-overflow: ellipsis;
445
+ z-index: 1;
446
+ }
379
447
  }
380
448
  }
381
449
  }
@@ -1,7 +1,7 @@
1
1
  .header {
2
2
  background: var(--primary-color);
3
3
  color: var(--primary-color);
4
- position: relative;
4
+ position: sticky;
5
5
  top: 0;
6
6
  width: 100%;
7
7
  z-index: 995;
@@ -11,7 +11,7 @@
11
11
  .headerAlternate {
12
12
  background: var(--bg-color);
13
13
  color: var(--paragraph-color);
14
- position: relative;
14
+ position: sticky;
15
15
  top: 0;
16
16
  width: 100%;
17
17
  z-index: 995;
@@ -596,7 +596,22 @@
596
596
 
597
597
  /* DataGrid top container and search container styles */
598
598
  .dataGridTopContainer {
599
+ display: flex;
600
+ justify-content: space-between;
601
+ align-items: center;
599
602
  margin-bottom: 8px;
603
+ padding: 0 5px;
604
+ }
605
+
606
+ .dataGridTopLeftContainer {
607
+ flex: 1;
608
+ }
609
+
610
+ .dataGridTopRightContainer {
611
+ display: flex;
612
+ align-items: center;
613
+ justify-content: flex-end;
614
+ padding-right: 10px;
600
615
  }
601
616
 
602
617
  .searchContainer {
@@ -651,12 +666,44 @@
651
666
  justify-content: flex-end;
652
667
  }
653
668
 
669
+ /* Auto-refresh controls */
670
+ .autoRefreshContainer {
671
+ display: inline-flex;
672
+ align-items: center;
673
+ padding: 0 15px;
674
+ height: 38px;
675
+ background-color: #f9fafb;
676
+ border: 1px solid #d1d5db;
677
+ border-radius: var(--br, 4px);
678
+ margin-left: 10px;
679
+ margin-bottom: 0;
680
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
681
+ }
682
+
683
+ .autoRefreshLabel {
684
+ display: flex;
685
+ align-items: center;
686
+ gap: 8px;
687
+ font-size: 0.9rem;
688
+ color: var(--secondary-color, #1f2937);
689
+ white-space: nowrap;
690
+ cursor: pointer;
691
+ font-weight: normal;
692
+ }
693
+
694
+ .autoRefreshCheckbox {
695
+ margin: 0;
696
+ cursor: pointer;
697
+ width: 16px;
698
+ height: 16px;
699
+ }
700
+
654
701
  /* Container for when only the action button is shown (search disabled) */
655
702
  .actionButtonsContainer {
656
703
  display: flex;
657
704
  justify-content: flex-end;
658
705
  width: 100%;
659
- margin-bottom: 8px; /* Reduced spacing to match when searchbar is present */
706
+ margin-bottom: 0; /* No bottom margin to align with auto-refresh */
660
707
  }
661
708
 
662
709
  .actionButtons {
@@ -618,6 +618,9 @@
618
618
  -webkit-overflow-scrolling: touch;
619
619
  scrollbar-width: none; /* Firefox */
620
620
  -ms-overflow-style: none; /* IE and Edge */
621
+ position: sticky;
622
+ top: 0;
623
+ z-index: 995;
621
624
 
622
625
  /* Hide scrollbar for Chrome/Safari/Opera */
623
626
  &::-webkit-scrollbar {
@@ -805,6 +808,12 @@
805
808
 
806
809
  .content {
807
810
  margin-left: 0;
811
+
812
+ .content-header {
813
+ position: sticky;
814
+ top: 0;
815
+ z-index: 995;
816
+ }
808
817
  }
809
818
 
810
819
  .popup-content {