nodebb-plugin-pdf-secure2 1.2.32 → 1.2.34

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": "nodebb-plugin-pdf-secure2",
3
- "version": "1.2.32",
3
+ "version": "1.2.34",
4
4
  "description": "Secure PDF viewer plugin for NodeBB - prevents downloading, enables canvas-only rendering with Premium group support",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  --accent: #0078d4;
24
24
  --accent-hover: #1a86d9;
25
25
  --border-color: #404040;
26
- --toolbar-height: 48px;
26
+ --toolbar-height: 34px;
27
27
  --sidebar-width: 200px;
28
28
  --toolbar-height-mobile: 44px;
29
29
  --bottom-bar-height: 52px;
@@ -109,20 +109,21 @@
109
109
  border-bottom: 1px solid var(--border-color);
110
110
  display: flex;
111
111
  align-items: center;
112
- padding: 0 12px;
113
- gap: 4px;
112
+ padding: 0 6px;
113
+ gap: 1px;
114
114
  z-index: 100;
115
115
  }
116
116
 
117
117
  .toolbarGroup {
118
118
  display: flex;
119
119
  align-items: center;
120
- gap: 2px;
120
+ gap: 0px;
121
121
  }
122
122
 
123
123
  .toolbarBtn {
124
- width: 36px;
125
- height: 36px;
124
+ width: 24px;
125
+ height: 24px;
126
+ min-width: 24px;
126
127
  border: none;
127
128
  background: transparent;
128
129
  color: var(--text-primary);
@@ -144,16 +145,16 @@
144
145
  }
145
146
 
146
147
  .toolbarBtn svg {
147
- width: 18px;
148
- height: 18px;
148
+ width: 14px;
149
+ height: 14px;
149
150
  fill: currentColor;
150
151
  }
151
152
 
152
153
  .separator {
153
154
  width: 1px;
154
- height: 24px;
155
+ height: 16px;
155
156
  background: var(--border-color);
156
- margin: 0 8px;
157
+ margin: 0 2px;
157
158
  }
158
159
 
159
160
  /* Enhanced Tooltips */
@@ -415,8 +416,8 @@
415
416
  }
416
417
 
417
418
  .dropdownArrow {
418
- width: 20px;
419
- height: 36px;
419
+ width: 14px;
420
+ height: 24px;
420
421
  border: none;
421
422
  background: transparent;
422
423
  color: var(--text-primary);
@@ -437,8 +438,8 @@
437
438
  }
438
439
 
439
440
  .dropdownArrow svg {
440
- width: 12px;
441
- height: 12px;
441
+ width: 10px;
442
+ height: 10px;
442
443
  fill: currentColor;
443
444
  }
444
445
 
@@ -541,24 +542,24 @@
541
542
  .pageInfo {
542
543
  display: flex;
543
544
  align-items: center;
544
- gap: 8px;
545
+ gap: 4px;
545
546
  margin-left: auto;
546
547
  }
547
548
 
548
549
  #pageInput {
549
- width: 40px;
550
- height: 28px;
550
+ width: 28px;
551
+ height: 22px;
551
552
  background: var(--bg-tertiary);
552
553
  border: 1px solid var(--border-color);
553
- border-radius: 4px;
554
+ border-radius: 3px;
554
555
  color: var(--text-primary);
555
556
  text-align: center;
556
- font-size: 13px;
557
+ font-size: 11px;
557
558
  }
558
559
 
559
560
  #pageCount {
560
561
  color: var(--text-secondary);
561
- font-size: 13px;
562
+ font-size: 11px;
562
563
  }
563
564
 
564
565
  /* Sidebar - Thumbnails */
@@ -1397,6 +1398,64 @@
1397
1398
  }
1398
1399
  }
1399
1400
 
1401
+ /* ==========================================
1402
+ FULLSCREEN - restore larger toolbar
1403
+ ========================================== */
1404
+ body.viewer-fullscreen #toolbar {
1405
+ --toolbar-height: 46px;
1406
+ height: 46px;
1407
+ padding: 0 12px;
1408
+ gap: 4px;
1409
+ }
1410
+
1411
+ body.viewer-fullscreen .toolbarGroup {
1412
+ gap: 2px;
1413
+ }
1414
+
1415
+ body.viewer-fullscreen .toolbarBtn {
1416
+ width: 34px;
1417
+ height: 34px;
1418
+ min-width: 34px;
1419
+ }
1420
+
1421
+ body.viewer-fullscreen .toolbarBtn svg {
1422
+ width: 18px;
1423
+ height: 18px;
1424
+ }
1425
+
1426
+ body.viewer-fullscreen .separator {
1427
+ height: 24px;
1428
+ margin: 0 6px;
1429
+ }
1430
+
1431
+ body.viewer-fullscreen .dropdownArrow {
1432
+ width: 18px;
1433
+ height: 34px;
1434
+ }
1435
+
1436
+ body.viewer-fullscreen .dropdownArrow svg {
1437
+ width: 12px;
1438
+ height: 12px;
1439
+ }
1440
+
1441
+ body.viewer-fullscreen #pageInput {
1442
+ width: 40px;
1443
+ height: 28px;
1444
+ font-size: 13px;
1445
+ }
1446
+
1447
+ body.viewer-fullscreen #pageCount {
1448
+ font-size: 13px;
1449
+ }
1450
+
1451
+ body.viewer-fullscreen .pageInfo {
1452
+ gap: 8px;
1453
+ }
1454
+
1455
+ body.viewer-fullscreen #viewerContainer {
1456
+ top: 46px;
1457
+ }
1458
+
1400
1459
  /* ==========================================
1401
1460
  TABLET BREAKPOINT (600px - 1024px)
1402
1461
  ========================================== */
package/image copy.png DELETED
Binary file