Skip to content

Commit

Permalink
canvas size optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-1337 committed Sep 28, 2024
1 parent 2d76835 commit b913604
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { IconsClass } from './icons.class';
export class AppComponent implements AfterViewInit {

qrData = 'https://example.com'; // Default QR Code data
qrSize = 256; // Default size
qrSize = 512; // Default size
// Define errorCorrectionLevel with the specific type
errorCorrectionLevel: QRCodeErrorCorrectionLevel = 'M'; // Default error correction level
colorDark = '#ffb787'; // Default dark color
Expand Down
2 changes: 1 addition & 1 deletion src/app/navbar/navbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<button mat-icon-button aria-label="Example icon-button with menu icon">
<mat-icon svgIcon="qr-code">menu</mat-icon>
</button>
<span>KraftQR</span>
<span>Kraft QR</span>
<!-- <span class="bar-spacer"></span>
<button mat-icon-button color="accent" aria-label="Example icon-button with heart icon">
<mat-icon svgIcon="support"></mat-icon>
Expand Down
4 changes: 2 additions & 2 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
border: solid 1px !important;

canvas {
max-width: 512px;
max-height: 512px;
max-width: calc(100vw - 65px);
max-height: calc(100vw - 65px);
}

&:last-child {
Expand Down

0 comments on commit b913604

Please sign in to comment.