Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
Show the alt-text length limit in the editor dialog
Paulo Castellano3397b829c237
diff --git a/resources/js/components/posts/editor/AltTextDialog.vue b/resources/js/components/posts/editor/AltTextDialog.vueindex 6e863ca2b..6fdf72c94 100644--- a/resources/js/components/posts/editor/AltTextDialog.vue+++ b/resources/js/components/posts/editor/AltTextDialog.vue@@ -7,6 +7,8 @@ import { Label } from '@/components/ui/label';import { Textarea } from '@/components/ui/textarea';import type { MediaItem } from '@/types/media';+const MAX_ALT_TEXT_LENGTH = 2000;+const props = defineProps<{mediaItem: MediaItem | null;}>();@@ -48,7 +50,7 @@ const save = () => {rows="4"data-testid="alt-text-input"/>- <p class="text-right text-xs tabular-nums text-foreground/60">{{ value.length }}</p>+ <p class="text-right text-xs tabular-nums text-foreground/60">{{ value.length }} / {{ MAX_ALT_TEXT_LENGTH }}</p></div><DialogFooter>