mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
🎨 Reduced favicon requirements (#2408)
refs TryGhost/Team#1652 - Support picking new image types in the favicon image uploader. - Added support for non-square and not resizable files (e.g., svg files) as favicon (cover background image).
This commit is contained in:
parent
cab7f2cd74
commit
191c7e312b
@ -14,11 +14,11 @@ import {run} from '@ember/runloop';
|
||||
import {inject as service} from '@ember/service';
|
||||
|
||||
export const IMAGE_MIME_TYPES = 'image/gif,image/jpg,image/jpeg,image/png,image/svg+xml,image/webp';
|
||||
export const IMAGE_EXTENSIONS = ['gif', 'jpg', 'jpeg', 'png', 'svg', 'webp'];
|
||||
export const IMAGE_EXTENSIONS = ['gif', 'jpg', 'jpeg', 'png', 'svg', 'svgz', 'webp'];
|
||||
export const IMAGE_PARAMS = {purpose: 'image'};
|
||||
|
||||
export const ICON_EXTENSIONS = ['ico', 'png'];
|
||||
export const ICON_MIME_TYPES = 'image/png,image/x-icon';
|
||||
export const ICON_EXTENSIONS = ['gif', 'ico', 'jpg', 'jpeg', 'png', 'svg', 'svgz', 'webp'];
|
||||
export const ICON_MIME_TYPES = 'image/x-icon,image/vnd.microsoft.icon,image/gif,image/jpg,image/jpeg,image/png,image/svg+xml,image/webp';
|
||||
export const ICON_PARAMS = {purpose: 'icon'};
|
||||
|
||||
export default Component.extend({
|
||||
|
@ -174,7 +174,7 @@
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background-color: transparent;
|
||||
background-size: 32px;
|
||||
background-size: cover;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user