Skip to content

Commit 9ffa63c

Browse files
committed
fix: changed remaing ems to rem and set root font size
1 parent 2f0c07b commit 9ffa63c

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

stylesheets/_global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ html {
66
height: 100%;
77
// Default theme is Classic Dark
88
background-color: #1b1b1b;
9+
font-size: 14px;
910
}
1011

1112
body {
@@ -14,7 +15,6 @@ body {
1415
width: 100%;
1516
margin: 0;
1617
font-family: $session-font-default;
17-
font-size: 14px;
1818
letter-spacing: 0.3px;
1919
}
2020

ts/components/AboutView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const StyledContent = styled.div`
1515
1616
img {
1717
padding: 12px;
18-
margin-top: 1em;
18+
margin-top: 1rem;
1919
}
2020
2121
a {

ts/components/DebugLogView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const StyledContent = styled.div`
1717
height: 100%;
1818
1919
.session-button {
20-
margin: 1em auto 1em 0;
21-
padding: 1em;
20+
margin: 1rem auto 1rem 0;
21+
padding: 1rem;
2222
width: fit-content;
2323
}
2424

ts/components/basic/YourSessionIDPill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { UserUtils } from '../../session/utils';
44

55
const StyledPillDividerLine = styled.div`
66
border-bottom: 1px solid var(--border-color);
7-
line-height: 0.1em;
7+
line-height: 0.1rem;
88
flex-grow: 1;
99
height: 1px;
1010
align-self: center;

ts/components/conversation/Emojify.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ export const Emojify = (props: Props): JSX.Element => {
4141
default:
4242
}
4343

44-
return <span style={{ fontSize: `${size}em`, userSelect: 'inherit' }}>{rendered}</span>;
44+
return <span style={{ fontSize: `${size}rem`, userSelect: 'inherit' }}>{rendered}</span>;
4545
};

ts/components/conversation/composition/EmojiQuickResult.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const EmojiQuickResult = styled.span`
1313
const EmojiQuickResultIcon = styled.span`
1414
padding-inline-end: 20px;
1515
padding-inline-start: 10px;
16-
font-size: 1.4em;
16+
font-size: 1.4rem;
1717
`;
1818
const EmojiQuickResultText = styled.span``;
1919

ts/components/conversation/message/message-item/GenericReadableMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const StyledReadableMessage = styled(ReadableMessage)<{
113113
display: flex;
114114
align-items: center;
115115
width: 100%;
116-
letter-spacing: 0.03em;
116+
letter-spacing: 0.03rem;
117117
padding: var(--margins-xs) var(--margins-lg) 0;
118118
119119
&.message-highlighted {

0 commit comments

Comments
 (0)