feat: 后台侧边栏紧凑化(13rem + 自定义 CSS)+ 博客设置改 Tab 六分区(站点/外观/订阅SEO/评论/附件/维护),补回时间格式/评论排序/缩略图/水印等 sablog 设置项并接入实际使用
This commit is contained in:
+3
-2
@@ -95,9 +95,10 @@ class Post extends Model implements HasMedia
|
||||
|
||||
public function registerMediaConversions(?Media $media = null): void
|
||||
{
|
||||
[$tw, $th] = array_pad(explode('x', strtolower((string) blog_setting('attachments_thumbs_size', '500x500'))), 2, '500');
|
||||
$this->addMediaConversion('thumb')
|
||||
->width(500)
|
||||
->height(500)
|
||||
->width((int) $tw)
|
||||
->height((int) $th)
|
||||
->performOnCollections('attachments');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user