1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-29 23:59:37 +02:00

Added support for .ico files

This commit is contained in:
Paweł Malak 2021-11-20 14:18:42 +01:00
parent 089ace562a
commit 8941f8f2f4
6 changed files with 17 additions and 5 deletions

View file

@ -154,7 +154,7 @@ export const AppForm = ({ app, modalHandler }: Props): JSX.Element => {
id="icon"
required
onChange={(e) => fileChangeHandler(e)}
accept=".jpg,.jpeg,.png,.svg"
accept=".jpg,.jpeg,.png,.svg,.ico"
/>
<span
onClick={() => {

View file

@ -146,6 +146,7 @@ export const BookmarksForm = ({
return (
<ModalForm modalHandler={modalHandler} formHandler={formSubmitHandler}>
{/* NAME */}
<InputGroup>
<label htmlFor="name">Bookmark Name</label>
<input
@ -159,6 +160,7 @@ export const BookmarksForm = ({
/>
</InputGroup>
{/* URL */}
<InputGroup>
<label htmlFor="url">Bookmark URL</label>
<input
@ -172,6 +174,7 @@ export const BookmarksForm = ({
/>
</InputGroup>
{/* CATEGORY */}
<InputGroup>
<label htmlFor="categoryId">Bookmark Category</label>
<select
@ -192,6 +195,7 @@ export const BookmarksForm = ({
</select>
</InputGroup>
{/* ICON */}
{!useCustomIcon ? (
// mdi
<InputGroup>
@ -227,7 +231,7 @@ export const BookmarksForm = ({
name="icon"
id="icon"
onChange={(e) => fileChangeHandler(e)}
accept=".jpg,.jpeg,.png,.svg"
accept=".jpg,.jpeg,.png,.svg,.ico"
/>
<span
onClick={() => {
@ -241,6 +245,7 @@ export const BookmarksForm = ({
</InputGroup>
)}
{/* VISIBILTY */}
<InputGroup>
<label htmlFor="isPublic">Bookmark visibility</label>
<select

View file

@ -85,7 +85,9 @@ export const UISettings = (): JSX.Element => {
<SettingsHeadline text="Header" />
{/* HIDE HEADER */}
<InputGroup>
<label htmlFor="hideHeader">Hide greetings</label>
<label htmlFor="hideHeader">
Hide headline (greetings and weather)
</label>
<select
id="hideHeader"
name="hideHeader"