@@ -27,6 +27,7 @@ import Menu2 from '../components/menu2';
2727import supportedLanguages from '../data/status-supported-languages' ;
2828import urlRegex from '../data/url-regex' ;
2929import { api } from '../utils/api' ;
30+ import contentTypesIconMap from '../utils/content-types-icon-map.js' ;
3031import db from '../utils/db' ;
3132import emojifyText from '../utils/emojify-text' ;
3233import i18nDuration from '../utils/i18n-duration' ;
@@ -51,7 +52,6 @@ import {
5152import supports from '../utils/supports' ;
5253import useCloseWatcher from '../utils/useCloseWatcher' ;
5354import useInterval from '../utils/useInterval' ;
54- import contentTypesIconMap from '../utils/content-types-icon-map.js' ;
5555import visibilityIconsMap from '../utils/visibility-icons-map' ;
5656
5757import AccountBlock from './account-block' ;
@@ -1157,8 +1157,17 @@ function Compose({
11571157 </ label > { ' ' }
11581158 { supports ( '@akkoma/post-content-type' ) && (
11591159 < >
1160- < label class = { `toolbar-button ${ contentType !== 'text/plain' && ! sensitive ? 'show-field' : '' } ${ contentType !== 'text/plain' ? 'highlight' : '' } ` } >
1161- < Icon icon = { contentTypesIconMap [ contentType ] } alt = { visibility } />
1160+ < label
1161+ class = { `toolbar-button ${
1162+ contentType !== 'text/plain' && ! sensitive
1163+ ? 'show-field'
1164+ : ''
1165+ } ${ contentType !== 'text/plain' ? 'highlight' : '' } `}
1166+ >
1167+ < Icon
1168+ icon = { contentTypesIconMap [ contentType ] }
1169+ alt = { visibility }
1170+ />
11621171 < select
11631172 name = { 'contentType' }
11641173 value = { contentType }
0 commit comments