Skip to content

Commit

Permalink
Merge pull request #94 from os2display/feature/ar-871-background-posi…
Browse files Browse the repository at this point in the history
…tion

AR-871: Fixed background position center
  • Loading branch information
tuj authored Dec 2, 2022
2 parents 8c5a14d + 1d2db27 commit d1bae44
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build/image-text-config-develop.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"id": "01FP2SNGFN0BZQH03KCBXHKYHG",
"description": "Mulighed for at sætte billede og tekst, med forskellige visninger.",
"resources": {
"component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text.js?ts=1664349718751",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text-admin.json?ts=1664349718751",
"component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text.js?ts=1669027516382",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text-admin.json?ts=1669027516382",
"schema": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/image-text-schema.json",
"assets": [],
"options": {},
Expand Down
4 changes: 2 additions & 2 deletions build/image-text-config-main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"id": "01FP2SNGFN0BZQH03KCBXHKYHG",
"description": "Mulighed for at sætte billede og tekst, med forskellige visninger.",
"resources": {
"component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text.js?ts=1664349718751",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-admin.json?ts=1664349718751",
"component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text.js?ts=1669027516382",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-admin.json?ts=1669027516382",
"schema": "https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-schema.json",
"assets": [],
"options": {},
Expand Down
2 changes: 1 addition & 1 deletion build/image-text.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/image-text/image-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
height: 100%;
width: 100%;
overflow: hidden;

background-size: cover;
background-position: center;

display: flex;
flex-direction: row;
flex-wrap: nowrap;
Expand Down Expand Up @@ -159,6 +155,7 @@
z-index: -1;
position: absolute;
background-size: cover;
background-position: center;
top: 0;
left: 0;
right: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const Slide = ({ slide: inputSlide }) => {
} else {
document.documentElement.classList.add("color-scheme-light");
}
}, [slide]);
}, []);

return (
<div className="app">
Expand Down

0 comments on commit d1bae44

Please sign in to comment.