-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue that caused active system notifications to make certif…
…icates print weirdly.
- Loading branch information
1 parent
a5b990b
commit e47a79b
Showing
9 changed files
with
75 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 7 additions & 17 deletions
24
...rc/app/certificates/components/certificate-previewer/certificate-previewer.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
<div class="certificate-template-previewer-component"> | ||
<ng-container *ngIf="!isDownloading; else loading"> | ||
<div class="gameboard-print"> | ||
<img class="certificate-img" [src]="imageUrl" alt="Certificate Preview Image" (load)="handleImageLoad()" | ||
*ngIf="imageUrl" (error)="handleError($event)" /> | ||
</div> | ||
|
||
<ng-template #notPublished> | ||
<div class="is-not-published"> | ||
This certificate either doesn't exist or has not been published by its owner. | ||
</div> | ||
</ng-template> | ||
</ng-container> | ||
</div> | ||
|
||
<ng-template #loading> | ||
<app-spinner> | ||
<app-spinner *ngIf="isDownloading"> | ||
Loading your preview... | ||
</app-spinner> | ||
</ng-template> | ||
|
||
<div class="gameboard-print"> | ||
<img class="certificate-img" [src]="imageUrl" alt="Certificate Preview Image" (load)="handleImageLoad()" | ||
*ngIf="imageUrl" (error)="handleError($event)" /> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../system-notifications/components/system-notifications/system-notifications.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 44 additions & 48 deletions
92
...eboard-ui/src/app/users/components/certificate-printer/certificate-printer.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,64 @@ | ||
@media print { | ||
* { | ||
--webkit-print-color-adjust: exact !important; | ||
print-color-adjust: exact !important; | ||
} | ||
* { | ||
--webkit-print-color-adjust: exact !important; | ||
print-color-adjust: exact !important; | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
} | ||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
border-width: 0px; | ||
margin: 0mm !important; | ||
padding: 0; | ||
} | ||
body { | ||
border-width: 0px; | ||
margin: 0mm !important; | ||
padding: 0; | ||
} | ||
|
||
@page { | ||
size: letter landscape; | ||
margin: 0mm !important; | ||
padding: 0; | ||
} | ||
@page { | ||
size: letter landscape; | ||
margin: 0mm !important; | ||
padding: 0; | ||
} | ||
|
||
img { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
img { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
html, body * { | ||
visibility: hidden; | ||
} | ||
|
||
.gameboard-print { | ||
visibility: visible; | ||
} | ||
html, | ||
body * { | ||
visibility: hidden; | ||
} | ||
|
||
.print-button { | ||
display: none; | ||
visibility: hidden; | ||
} | ||
.gameboard-print { | ||
visibility: visible; | ||
} | ||
|
||
.print-button { | ||
display: none; | ||
visibility: hidden; | ||
} | ||
} | ||
|
||
.certificate-printer-component { | ||
position: relative; | ||
position: relative; | ||
} | ||
|
||
.gameboard-print { | ||
display: flex; | ||
justify-content: center; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
img { | ||
height: 100vh; | ||
height: 100vh; | ||
} | ||
|
||
.print-button-container { | ||
position: absolute; | ||
display: flex; | ||
justify-content: center; | ||
top: 4px; | ||
width: calc(100vw - 12px); | ||
} | ||
|
||
.is-not-published { | ||
margin-top: 5rem; | ||
text-align: center; | ||
position: absolute; | ||
display: flex; | ||
justify-content: center; | ||
top: 4px; | ||
width: calc(100vw - 12px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters