File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Easy Image
2
2
3
+ ## [ 2.0.1] - 2024-07-20
4
+
5
+ - Fixed regression that unscroupulously injected opinionated styles into templates
6
+
3
7
## [ 2.0.0] - 2024-07-13
4
8
5
9
- Updated dependencies for Craft 5
21
25
- Added placeholder support
22
26
- Added tests
23
27
28
+ [ 2.0.1 ] : (https://github.com/acalvino4/craft-easy-image/releases/tag/2.0.1)
24
29
[ 2.0.0 ] : (https://github.com/acalvino4/craft-easy-image/releases/tag/2.0.0)
25
30
[ 1.0.1 ] : (https://github.com/acalvino4/craft-easy-image/releases/tag/1.0.1)
26
31
[ 1.0.0 ] : (https://github.com/acalvino4/craft-easy-image/releases/tag/1.0.0)
Original file line number Diff line number Diff line change 9
9
use craft \base \Model ;
10
10
use craft \base \Plugin as BasePlugin ;
11
11
use craft \events \RegisterTemplateRootsEvent ;
12
- use craft \events \TemplateEvent ;
13
12
use craft \web \View ;
14
13
use yii \base \Event ;
15
14
@@ -69,9 +68,5 @@ private function attachEventHandlers(): void
69
68
Event::on (View::class, View::EVENT_REGISTER_SITE_TEMPLATE_ROOTS , function (RegisterTemplateRootsEvent $ e ) {
70
69
$ e ->roots ['easy-image ' ] = __DIR__ . '/templates ' ;
71
70
});
72
-
73
- Event::on (View::class, View::EVENT_BEFORE_RENDER_TEMPLATE , function (TemplateEvent $ event ) {
74
- Craft::$ app ->getView ()->registerCss ("img, video {object-fit: cover;} " );
75
- });
76
71
}
77
72
}
You can’t perform that action at this time.
0 commit comments