Skip to content

Commit

Permalink
Fix pre or code wrap algolia#226
Browse files Browse the repository at this point in the history
  • Loading branch information
hongshaoyang committed Mar 20, 2022
1 parent 5801b71 commit 71787f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/javascript/src/Story.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

&_data {
margin: 4px 0;
flex: auto;
max-width: 50%;
}

&_title {
Expand Down Expand Up @@ -181,7 +183,7 @@
}

&_share {
flex: 1;
flex: 140px; // follow min-width
text-align: right;
min-width: 140px;
display: flex;
Expand Down Expand Up @@ -273,6 +275,9 @@
color: #000 !important;
font-weight: bold;
}
code, pre {
overflow: scroll;
}
}

&_title {
Expand Down

0 comments on commit 71787f9

Please sign in to comment.