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

Fix too-wide codemirror #531

Merged
merged 1 commit into from Jul 15, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/scss/layout/_admin.scss
Expand Up @@ -94,6 +94,7 @@
&--main {
@include media-breakpoint-up(xl) {
grid-column: 1/13;
width: 100%;
}
}
&--aside {
Expand Down
2 changes: 0 additions & 2 deletions assets/scss/vendor/codemirror.scss
@@ -1,7 +1,5 @@
@import '~codemirror/lib/codemirror.css';



.CodeMirror.cm-s-default {
border: 1px solid #DDD;
border-radius: 4px;
Expand Down
11 changes: 6 additions & 5 deletions templates/finder/editfile.html.twig
Expand Up @@ -20,7 +20,7 @@
{% endblock %}

{% block main %}
<h2>{{ 'caption.path'|trans }}: <code>{{ location }}{{ file }}</code></h2>
<h3>{{ 'caption.path'|trans }}: <code>{{ location }}{{ file }}</code></h3>

<form method="post">
<input type="hidden" name="file" value="{{ file }}">
Expand All @@ -40,9 +40,10 @@
{% block javascripts %}
{{ parent() }}
<script>
var myCodeMirror = CodeMirror.fromTextArea(editfile_textarea, {
lineNumbers: true,
mode: '{{ mode }}'
});
var editfile_textarea = document.getElementById('editfile_textarea');
var myCodeMirror = CodeMirror.fromTextArea(editfile_textarea, {
lineNumbers: true,
mode: '{{ mode }}'
});
</script>
{% endblock %}