Skip to content

Commit 7e6f031

Browse files
committed
fix: set img max width
1 parent 3ddce0f commit 7e6f031

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*!
2+
* github.com/jxlwqq
3+
* 2020-11-20
4+
*/
5+
6+
/*It prevents the used value of the width property from becoming larger than the value specified by max-width.*/
7+
.simditor .simditor-body img {
8+
cursor: pointer;
9+
max-width: 100%;
10+
height: auto;
11+
}

src/Editor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Editor extends Field
1010

1111
protected static $css = [
1212
'vendor/laravel-admin-ext/simditor/simditor-2.3.28/styles/simditor.css',
13+
'vendor/laravel-admin-ext/simditor/simditor-2.3.28/styles/customized.css',
1314
];
1415

1516
protected static $js = [

0 commit comments

Comments
 (0)