Skip to content

Commit

Permalink
Merge pull request #12 from revolter/fix/markdown-preview-issues
Browse files Browse the repository at this point in the history
Fixed long Markdown preview lines breaking the layout
  • Loading branch information
revolter authored Jun 18, 2024
2 parents c8b52c1 + d75c316 commit 25adb50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions _sass/minima/custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ html {
body {
height: 100%;

code {
text-wrap-mode: wrap;
word-wrap: anywhere;
}

.page-content {
display: flex;

Expand Down Expand Up @@ -103,16 +98,21 @@ body {
@include relative-font-size(1);
}

.markdown-preview {
#markdown-preview {
border-style: solid;
border-width: 1px;

@media not screen and (min-width: $on-laptop) {
overflow: auto;
}

* {
text-wrap-mode: wrap;
word-wrap: anywhere;
}
}

textarea, .markdown-preview {
textarea, #markdown-preview {
flex-grow: 1;
flex-basis: 0;

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<div class="content">
<textarea id="{{ textarea_id }}" placeholder="{{ textarea_placeholder }}" autofocus></textarea>
<div id="{{ markdown_preview_id }}" class="markdown-preview"></div>
<div id="{{ markdown_preview_id }}"></div>
</div>

<script>
Expand Down

0 comments on commit 25adb50

Please sign in to comment.