Browse Source

Image size adaptation in the article

moell 7 years ago
parent
commit
42a9f07c92
2 changed files with 5 additions and 3 deletions
  1. 4 1
      public/default/css/index.css
  2. 1 2
      resources/views/default/show_article.blade.php

+ 4 - 1
public/default/css/index.css

@@ -93,7 +93,10 @@
     max-width:150px;
 }
 
-
 a {
     color: #34495e;
+}
+
+.markdown-preview img{
+    max-width: 100%;
 }

+ 1 - 2
resources/views/default/show_article.blade.php

@@ -9,7 +9,6 @@
 @section('keywords', $systemPresenter->checkReturnValue('seo_keyword', $article->keyword))
 
 @section('style')
-    <link rel="stylesheet" href="{{ asset('editor.md/css/editormd.preview.min.css') }}">
     <link rel="stylesheet" href="{{ asset('share.js/css/share.min.css') }}">
 @endsection
 
@@ -46,7 +45,7 @@
 @endsection
 
 @section('content')
-    <div class="markdown-body editormd-html-preview" style="padding:0;">
+    <div class="markdown-preview">
         {!! $article->html_content !!}
     </div>