Skip to content

Commit 2ce0c6e

Browse files
author
bibakroy
committed
Refactor responsive styles for embed and message components to improve layout on small screens
1 parent be6af5b commit 2ce0c6e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/Content/Embed/style.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ export const Embed = styled.withConfig({
2828
},
2929
},
3030
},
31-
"@media (max-width: 413px)": {
32-
maxWidth: "170px",
31+
"@media (max-width: 319px)": {
32+
maxWidth: "45vw",
33+
},
34+
"@media (min-width: 320px) and (max-width: 413px)": {
35+
maxWidth: "55vw",
3336
},
3437
"@media (min-width: 414px) and (max-width: 833px)": {
35-
maxWidth: "260px",
38+
maxWidth: "65vw",
3639
},
3740
});
3841

src/Message/style/message.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ export const Message = styled.withConfig({
8383
},
8484
},
8585
},
86-
"@media (max-width: 833px)": {
87-
padding: `2px 10px 2px ${theme.sizes.messageLeftPadding}`,
86+
"@media (max-width: 319px)": {
87+
paddingRight: `0px`,
88+
},
89+
"@media (min-width: 320px) and (max-width: 833px)": {
90+
paddingRight: `8px`,
8891
},
8992
}
9093
);

0 commit comments

Comments
 (0)