[Editor] Change the background color of the image preview in the new alt text dialog
This commit is contained in:
parent
999403f5ef
commit
bad214fc71
@ -857,6 +857,17 @@
|
|||||||
.dialog.newAltText {
|
.dialog.newAltText {
|
||||||
--new-alt-text-ai-disclaimer-icon: url(images/altText_disclaimer.svg);
|
--new-alt-text-ai-disclaimer-icon: url(images/altText_disclaimer.svg);
|
||||||
--new-alt-text-spinner-icon: url(images/altText_spinner.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%;
|
width: 80%;
|
||||||
max-width: 570px;
|
max-width: 570px;
|
||||||
@ -1016,6 +1027,8 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
background-color: var(--preview-image-bg-color);
|
||||||
|
border: var(--preview-image-border);
|
||||||
|
|
||||||
> canvas {
|
> canvas {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user