mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Changed default media field from 150x100 -> 200x150
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
* Force admin pages to set `Page::expires(0)` so it's not cached [#1009](https://github.com/getgrav/grav-plugin-admin/issues/1009)
|
||||
* Added support for up to 15 tabs (was 10) [#954](https://github.com/getgrav/grav-plugin-admin/issues/954)
|
||||
* Only reorder pages in the admin if collection uses `@self` and `order.by`
|
||||
* Improved configuration tab sizes when you have lots of tabs
|
||||
* Modified default media select size from 150px x 100px to 200px x 150px
|
||||
1. [](#bugfix)
|
||||
* Fixed rendering issue with Chrome and sortables collections [#1002](https://github.com/getgrav/grav-plugin-admin/issues/1002)
|
||||
|
||||
|
||||
@@ -1512,7 +1512,7 @@ class AdminController extends AdminBaseController
|
||||
$media = new Media($page->path());
|
||||
|
||||
foreach ($media->all() as $name => $medium) {
|
||||
$media_list[$name] = ['url' => $medium->cropZoom(150, 100)->url(), 'size' => $medium->get('size')];
|
||||
$media_list[$name] = ['url' => $medium->cropZoom(200, 150)->url(), 'size' => $medium->get('size')];
|
||||
}
|
||||
$this->admin->json_response = ['status' => 'success', 'results' => $media_list];
|
||||
|
||||
|
||||
2
themes/grav/css-compiled/template.css
vendored
2
themes/grav/css-compiled/template.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
/* The MIT License */
|
||||
|
||||
$preview-width: 150px;
|
||||
$preview-height: 100px;
|
||||
$preview-width: 200px;
|
||||
$preview-height: 150px;
|
||||
|
||||
.dropzone {
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user