Skip to content

Commit

Permalink
Use smaller font on small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmbake committed Nov 3, 2023
1 parent b4ae827 commit fa38ba9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/calendar.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
@media (max-width: 576px) {
body {
font-size: 12px;
}
.btn {
font-size: 12px;
}
}


.time-col {
flex: 0 0 auto;
width: 9%;
Expand Down
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ const Calendar = ({
<div className="calendar">
<div className="d-flex justify-content-between m-4">
<div className="fs-4">
<strong>{dateInfo.month}</strong> {dateInfo.year}
<span className='d-none d-sm-block'><strong>{dateInfo.month}</strong> {dateInfo.year}</span>
<span className='d-block d-sm-none'><strong>{dateInfo.month.substring(0,3)}</strong> {dateInfo.year.toString().substring(2,4)}</span>
</div>
<div className="btn-group btn-group-sm" role="group">
<button
Expand Down

0 comments on commit fa38ba9

Please sign in to comment.