Skip to content

Commit

Permalink
Override textarea font settings in DialogueTextarea & MathTextarea to…
Browse files Browse the repository at this point in the history
… match syntax highlighted text
  • Loading branch information
chrismaltby committed Jul 2, 2024
1 parent 0d8a74c commit f8fdab0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/ui/form/DialogueTextarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,15 @@ const DialogueTextareaWrapper = styled.div<DialogueTextareaWrapperProps>`
position: static !important;
margin-left: -5px !important;
border: 1px solid ${(props) => props.theme.colors.input.border};
font-size: ${(props) => props.theme.typography.fontSize};
font-size: ${(props) => props.theme.typography.fontSize} !important;
font-family: monospace !important;
font-stretch: 100% !important;
font-style: normal !important;
font-variant-caps: normal !important;
font-variant-east-asian: normal !important;
font-variant-ligatures: normal !important;
font-variant-numeric: normal !important;
font-weight: 700 !important;
border-radius: 4px;
box-sizing: border-box;
width: 100%;
Expand Down
10 changes: 9 additions & 1 deletion src/components/ui/form/MathTextarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,15 @@ export const MathTextareaWrapper = styled.div`
.MentionsInput__input {
color: transparent;
border: 1px solid ${(props) => props.theme.colors.input.border};
font-size: ${(props) => props.theme.typography.fontSize};
font-size: ${(props) => props.theme.typography.fontSize} !important;
font-family: monospace !important;
font-stretch: 100% !important;
font-style: normal !important;
font-variant-caps: normal !important;
font-variant-east-asian: normal !important;
font-variant-ligatures: normal !important;
font-variant-numeric: normal !important;
font-weight: 700 !important;
border-radius: 4px;
box-sizing: border-box;
width: 100%;
Expand Down

0 comments on commit f8fdab0

Please sign in to comment.