mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #18584 from calixteman/preview_background
[Editor] Change the background color of the image preview in the new alt text dialog
This commit is contained in:
commit
36dc666d04
1 changed files with 13 additions and 0 deletions
|
@ -857,6 +857,17 @@
|
|||
.dialog.newAltText {
|
||||
--new-alt-text-ai-disclaimer-icon: url(images/altText_disclaimer.svg);
|
||||
--new-alt-text-spinner-icon: url(images/altText_spinner.svg);
|
||||
--preview-image-bg-color: #f0f0f4;
|
||||
--preview-image-border: none;
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
--preview-image-bg-color: #2b2a33;
|
||||
}
|
||||
|
||||
@media screen and (forced-colors: active) {
|
||||
--preview-image-bg-color: ButtonFace;
|
||||
--preview-image-border: 1px solid ButtonText;
|
||||
}
|
||||
|
||||
width: 80%;
|
||||
max-width: 570px;
|
||||
|
@ -1016,6 +1027,8 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
flex: 0 0 auto;
|
||||
background-color: var(--preview-image-bg-color);
|
||||
border: var(--preview-image-border);
|
||||
|
||||
> canvas {
|
||||
max-width: 100%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue