Skip to content

Commit

Permalink
Merge pull request #111 from samvera-labs/3568-responsive-osd-controls
Browse files Browse the repository at this point in the history
Make OSD controls more usable in smallest viewports.
  • Loading branch information
mathewjordan authored Mar 9, 2023
2 parents dcd7b45 + 97875aa commit e76c9be
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/ImageViewer/Button.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,24 @@ const Item = styled("button", {
color: "white",
cursor: "pointer",
marginLeft: "0.618rem",
backgroundColor: "#000D",
filter: "drop-shadow(5px 5px 5px #0006)",
backgroundColor: "$primary",
filter: "drop-shadow(2px 2px 5px #0003)",
transition: "$all",
boxSizing: "content-box !important",

"&:first-child": {
marginLeft: "0",
},

"@xs": {
marginBottom: "0.618rem",
marginLeft: "0",

"&:last-child": {
marginBottom: "0",
},
},

svg: {
height: "60%",
width: "60%",
Expand Down
5 changes: 5 additions & 0 deletions src/components/ImageViewer/Controls.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const Wrapper = styled("div", {
top: "1rem",
right: "1rem",
display: "flex",

"@xs": {
flexDirection: "column",
zIndex: "2",
},
});

export { Wrapper };
5 changes: 5 additions & 0 deletions src/components/ImageViewer/ImageViewer.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ const Navigator = styled("div", {
width: "123px",
height: "76px",
},

"@xs": {
width: "100px",
height: "61.8px",
},
});

const Viewport = styled("div", {
Expand Down

0 comments on commit e76c9be

Please sign in to comment.