fix: content-warning icon on iOS

This commit is contained in:
Shusui MOYATANI
2024-01-06 18:43:59 +09:00
parent 394e6b6fe8
commit 3c5f5aaad7

View File

@@ -400,7 +400,7 @@ const NotePostForm: Component<NotePostFormProps> = (props) => {
</Show> </Show>
<EmojiPicker customEmojis={true} onEmojiSelect={handleEmojiSelect}> <EmojiPicker customEmojis={true} onEmojiSelect={handleEmojiSelect}>
<span <span
class="inline-block rounded bg-primary font-bold text-primary-fg" class="inline-block rounded bg-primary text-primary-fg"
classList={{ classList={{
'h-8': mode() === 'normal', 'h-8': mode() === 'normal',
'w-8': mode() === 'normal', 'w-8': mode() === 'normal',
@@ -414,7 +414,7 @@ const NotePostForm: Component<NotePostFormProps> = (props) => {
</span> </span>
</EmojiPicker> </EmojiPicker>
<button <button
class="flex items-center justify-center rounded p-2 text-xs font-bold text-primary-fg" class="rounded text-primary-fg"
classList={{ classList={{
'bg-primary': !contentWarning(), 'bg-primary': !contentWarning(),
'bg-primary-hover': contentWarning(), 'bg-primary-hover': contentWarning(),
@@ -433,7 +433,7 @@ const NotePostForm: Component<NotePostFormProps> = (props) => {
<ExclamationTriangle /> <ExclamationTriangle />
</button> </button>
<button <button
class="rounded font-bold text-primary-fg" class="rounded text-primary-fg"
classList={{ classList={{
'bg-primary-disabled': fileUploadDisabled(), 'bg-primary-disabled': fileUploadDisabled(),
'bg-primary': !fileUploadDisabled(), 'bg-primary': !fileUploadDisabled(),
@@ -453,7 +453,7 @@ const NotePostForm: Component<NotePostFormProps> = (props) => {
<Photo /> <Photo />
</button> </button>
<button <button
class="rounded p-2 font-bold text-primary-fg" class="rounded p-2 text-primary-fg"
classList={{ classList={{
'bg-primary-disabled': submitDisabled(), 'bg-primary-disabled': submitDisabled(),
'bg-primary': !submitDisabled(), 'bg-primary': !submitDisabled(),