Skip to content

Commit

Permalink
fix: set img max width
Browse files Browse the repository at this point in the history
  • Loading branch information
jxlwqq committed Nov 20, 2020
1 parent 3ddce0f commit 7e6f031
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/assets/simditor-2.3.28/styles/customized.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*!
* github.com/jxlwqq
* 2020-11-20
*/

/*It prevents the used value of the width property from becoming larger than the value specified by max-width.*/
.simditor .simditor-body img {
cursor: pointer;
max-width: 100%;
height: auto;
}
1 change: 1 addition & 0 deletions src/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Editor extends Field

protected static $css = [
'vendor/laravel-admin-ext/simditor/simditor-2.3.28/styles/simditor.css',
'vendor/laravel-admin-ext/simditor/simditor-2.3.28/styles/customized.css',
];

protected static $js = [
Expand Down

0 comments on commit 7e6f031

Please sign in to comment.