fix: tags being dimmed on safari (#1389)
This commit is contained in:
@@ -135,17 +135,25 @@ const SmartViewsListItem: FunctionComponent<Props> = ({ view, tagsState, isColla
|
|||||||
>
|
>
|
||||||
<Icon type={iconType} className={isSelected ? 'text-info' : 'text-neutral'} />
|
<Icon type={iconType} className={isSelected ? 'text-info' : 'text-neutral'} />
|
||||||
</div>
|
</div>
|
||||||
<input
|
{isEditing ? (
|
||||||
className={classNames('title', isEditing ? 'editing' : '', isCollapsed ? 'hidden' : 'block')}
|
<input
|
||||||
disabled={!isEditing}
|
className={classNames('title editing', isCollapsed ? 'hidden' : 'block')}
|
||||||
id={`react-tag-${view.uuid}`}
|
id={`react-tag-${view.uuid}`}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
onInput={onInput}
|
onInput={onInput}
|
||||||
value={title}
|
value={title}
|
||||||
onKeyUp={onKeyUp}
|
onKeyUp={onKeyUp}
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<div
|
||||||
|
className={classNames('title overflow-hidden text-left', isCollapsed ? 'hidden' : 'block')}
|
||||||
|
id={`react-tag-${view.uuid}`}
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className={classNames('count', isCollapsed ? 'absolute top-0 right-0' : '')}>
|
<div className={classNames('count', isCollapsed ? 'absolute top-0 right-0' : '')}>
|
||||||
{view.uuid === SystemViewId.AllNotes && tagsState.allNotesCount}
|
{view.uuid === SystemViewId.AllNotes && tagsState.allNotesCount}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -242,21 +242,31 @@ export const TagsListItem: FunctionComponent<Props> = observer(
|
|||||||
>
|
>
|
||||||
<Icon type="hashtag" className={`${isSelected ? 'text-info' : 'text-neutral'}`} />
|
<Icon type="hashtag" className={`${isSelected ? 'text-info' : 'text-neutral'}`} />
|
||||||
</div>
|
</div>
|
||||||
<input
|
{isEditing ? (
|
||||||
className={classNames(
|
<input
|
||||||
'title focus:shadow-none focus:outline-none',
|
className={classNames(
|
||||||
isEditing ? 'editing' : '',
|
'title editing focus:shadow-none focus:outline-none',
|
||||||
isCollapsed ? 'md-only:!w-min lg-only:!w-min' : '',
|
isCollapsed ? 'md-only:!w-min lg-only:!w-min' : '',
|
||||||
)}
|
)}
|
||||||
id={`react-tag-${tag.uuid}`}
|
id={`react-tag-${tag.uuid}`}
|
||||||
disabled={!isEditing}
|
onBlur={onBlur}
|
||||||
onBlur={onBlur}
|
onInput={onInput}
|
||||||
onInput={onInput}
|
value={title}
|
||||||
value={title}
|
onKeyDown={onKeyDown}
|
||||||
onKeyDown={onKeyDown}
|
spellCheck={false}
|
||||||
spellCheck={false}
|
ref={inputRef}
|
||||||
ref={inputRef}
|
/>
|
||||||
/>
|
) : (
|
||||||
|
<div
|
||||||
|
className={classNames(
|
||||||
|
'title overflow-hidden text-left focus:shadow-none focus:outline-none',
|
||||||
|
isCollapsed ? 'md-only:!w-min lg-only:!w-min' : '',
|
||||||
|
)}
|
||||||
|
id={`react-tag-${tag.uuid}`}
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<a
|
<a
|
||||||
role="button"
|
role="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user