Skip to content

Commit

Permalink
Fix style for mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Oct 9, 2023
1 parent 7ad6d82 commit cb0a830
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/cells/style/inputarea.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
| Mobile
|----------------------------------------------------------------------------*/
@media only screen and (width <= 760px) {
.jp-InputArea {
flex-direction: column;
}

.jp-InputArea-editor {
margin-left: var(--jp-notebook-padding);
}
Expand Down
7 changes: 5 additions & 2 deletions packages/outputarea/style/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,16 @@ body.lm-mod-override-cursor .jp-OutputArea-output.jp-mod-isolated::before {
| Mobile
|----------------------------------------------------------------------------*/
@media only screen and (width <= 760px) {
.jp-OutputArea-child {
flex-direction: column;
}

.jp-OutputPrompt {
display: table-row;
flex: 0 0 auto;
text-align: left;
}

.jp-OutputArea-child .jp-OutputArea-output {
display: table-row;
margin-left: var(--jp-notebook-padding);
}
}
Expand Down

0 comments on commit cb0a830

Please sign in to comment.