Przeglądaj źródła

fix(pdf): enlarge judge-card boxes to 21px without changing 24-row layout

yemeishu 2 tygodni temu
rodzic
commit
26cc8253a5

+ 3 - 3
resources/views/pdf/partials/common-styles.blade.php

@@ -401,9 +401,9 @@
         page-break-inside: avoid;
         break-inside: avoid;
     }
-    .scan-grade-box {
-        width: 17px;
-        height: 17px;
+    .scan-sheet-page .scan-grade-box {
+        width: 21px;
+        height: 21px;
         border: 1px solid #333;
         display: inline-block;
         vertical-align: middle;

+ 3 - 3
resources/views/pdf/partials/grading-scan-sheet-styles.blade.php

@@ -57,12 +57,12 @@
     gap: 4px;
 }
 
-.scan-grade-box {
+.scan-sheet-page .scan-grade-box {
     border: 1px solid #333;
     box-sizing: border-box;
     background: #fff;
-    width: 17px;
-    height: 17px;
+    width: 21px;
+    height: 21px;
     display: inline-block;
     vertical-align: middle;
 }

+ 2 - 2
resources/views/pdf/partials/grading-scan-sheet.blade.php

@@ -64,7 +64,7 @@
                     <span class="scan-sheet-no" style="font-weight:700;font-size:14px;line-height:1.2;white-space:nowrap;margin-right:2px;">题目 {{ $questionNo }}.</span>
                     <span class="scan-sheet-marks" style="display:inline-flex;align-items:center;gap:4px;">
                         @for($i = 0; $i < $boxCount; $i++)
-                            <span class="scan-grade-box" style="display:inline-block;width:17px;height:17px;border:1px solid #333;box-sizing:border-box;background:#fff;vertical-align:middle;"></span>
+                            <span class="scan-grade-box" style="display:inline-block;width:21px;height:21px;border:1px solid #333;box-sizing:border-box;background:#fff;vertical-align:middle;"></span>
                         @endfor
                     </span>
                 </div>
@@ -81,7 +81,7 @@
                     <span class="scan-sheet-no" style="font-weight:700;font-size:14px;line-height:1.2;white-space:nowrap;margin-right:2px;">题目 {{ $questionNo }}.</span>
                     <span class="scan-sheet-marks" style="display:inline-flex;align-items:center;gap:4px;">
                         @for($i = 0; $i < $boxCount; $i++)
-                            <span class="scan-grade-box" style="display:inline-block;width:17px;height:17px;border:1px solid #333;box-sizing:border-box;background:#fff;vertical-align:middle;"></span>
+                            <span class="scan-grade-box" style="display:inline-block;width:21px;height:21px;border:1px solid #333;box-sizing:border-box;background:#fff;vertical-align:middle;"></span>
                         @endfor
                     </span>
                 </div>