Merge pull request #8259 from turbo124/v5-develop

Design fixes
This commit is contained in:
David Bomba 2023-02-08 07:07:04 +11:00 committed by GitHub
commit 0de3b4a0ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 78 additions and 12 deletions

View File

@ -1,5 +1,6 @@
<?php
use App\Models\Company;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
@ -17,6 +18,22 @@ return new class extends Migration
$table->unsignedInteger("max_quantity")->nullable();
$table->string("product_image", 191)->nullable();
});
Company::query()
->chunk(1000, function ($companies) {
foreach($companies as $c)
{
$settings = $c->settings;
$settings->font_size = 16;
$c->settings = $settings;
$c->save();
}
});
}
/**

View File

@ -11,10 +11,15 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
body, html {
margin: 0;
padding: 0;
@ -114,7 +119,7 @@
min-width: 100%;
table-layout: fixed;
overflow-wrap: break-word;
margin-top: 3rem;
margin-top: 0rem;
margin-bottom: 0px;
}

View File

@ -16,10 +16,16 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
@page {
margin-left: $global_margin;
margin-right: $global_margin;

View File

@ -11,10 +11,15 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
html {
margin: 0;
padding-top: 1rem;

View File

@ -16,10 +16,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
@page {
margin-left: $global_margin;
margin-right: $global_margin;

View File

@ -16,10 +16,15 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
@page {
margin-left: $global_margin;
margin-right: $global_margin;

View File

@ -16,10 +16,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
@page {
margin: $global_margin;
size: $page_size $page_layout;

View File

@ -16,10 +16,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
@page {
margin: $global_margin;
size: $page_size $page_layout;

View File

@ -15,10 +15,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "7px";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
body, html {
margin: 0;
padding: 0;

View File

@ -11,10 +11,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
html {
width: 210mm;
height: 200mm;

View File

@ -11,10 +11,14 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
html {
width: 210mm;
height: 200mm;

View File

@ -15,11 +15,15 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: $font_name, Helvetica, sans-serif;
font-size: "$font_size";
font-size: $font_size !important;
zoom: 80%;
margin: 0;
}
table tr td, table tr, th {
font-size: $font_size !important;
}
@page {
margin: 0;
size: $page_size $page_layout;