Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

모바일 환경의 SourceCode 폰트 사이즈 변경 #875

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions frontend/src/components/AuthorInfo/AuthorInfo.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@ export const EllipsisTextWrapper = styled.span`
display: block;

min-width: 0;
max-width: 15.625rem;

text-overflow: ellipsis;
white-space: nowrap;

@media (max-width: 1376px) {
max-width: 15.625rem;
}

@media (max-width: 768px) {
max-width: 8.125rem;
}
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/components/SourceCode/SourceCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,15 @@ const SourceCode = ({ mode = 'detailView', language, content, handleContentChang
height={mode === 'thumbnailView' ? '10rem' : '100%'}
minHeight={mode === 'edit' ? '10rem' : undefined}
maxHeight={mode === 'edit' ? '40rem' : undefined}
style={{ width: '100%', fontSize: '1rem' }}
css={{
width: '100%',
fontSize: '1rem',
'@media (max-width: 430px)': {
fontSize: '0.65rem',
'.cm-scroller': {
padding: '0px !important',
},
},
minHeight: '160px',
backgroundColor: `rgba(0, 0, 0, 0.1)`,
'.cm-scroller': {
Expand Down
Loading