Truncate gif alt text to 2000 symbols (#11488)
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
type EmbedPlayerParams,
|
||||
parseEmbedPlayerFromUrl,
|
||||
} from '#/lib/strings/embed-player'
|
||||
import {enforceLen} from '#/lib/strings/helpers'
|
||||
import {useResolveGifQuery} from '#/state/queries/resolve-link'
|
||||
import {AltTextCounterWrapper} from '#/view/com/composer/AltTextCounterWrapper'
|
||||
import {atoms as a, useTheme} from '#/alf'
|
||||
@@ -111,7 +112,7 @@ export function GifAltTextDialogLoaded({
|
||||
<Dialog.Outer
|
||||
control={control}
|
||||
onClose={() => {
|
||||
onSubmit(altTextDraft)
|
||||
onSubmit(enforceLen(altTextDraft, MAX_ALT_TEXT, true))
|
||||
}}
|
||||
nativeOptions={{fullHeight: true}}>
|
||||
<Dialog.Handle />
|
||||
|
||||
Reference in New Issue
Block a user