Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fixes

Nevo David88440c231d88
diff --git a/apps/frontend/src/components/launches/add.edit.model.tsx b/apps/frontend/src/components/launches/add.edit.model.tsx
index 8b2389fcf..14e3bfd32 100644
--- a/apps/frontend/src/components/launches/add.edit.model.tsx
+++ b/apps/frontend/src/components/launches/add.edit.model.tsx
@@ -540,9 +540,9 @@ export const AddEditModal: FC<{
</>
) : null}
</div>
- <div className="relative h-[68px] flex flex-col rounded-[4px] border border-customColor6 bg-sixth">
- <div className="gap-[10px] relative">
- <div id = "add-edit-post-dialog-buttons" className="flex flex-row flex-wrap w-full h-full gap-[10px] justify-end items-center right-[16px]">
+ <div className="relative min-h-[68px] flex flex-col rounded-[4px] border border-customColor6 bg-sixth">
+ <div className="gap-[10px] relative flex flex-col justify-center items-center min-h-full pr-[16px]">
+ <div id = "add-edit-post-dialog-buttons" className="flex flex-row flex-wrap w-full h-full gap-[10px] justify-end items-center">
<Button
className="rounded-[4px]"
onClick={askClose}
diff --git a/apps/frontend/src/components/launches/providers/x/x.provider.tsx b/apps/frontend/src/components/launches/providers/x/x.provider.tsx
index 0a5178369..ac5a8dda8 100644
--- a/apps/frontend/src/components/launches/providers/x/x.provider.tsx
+++ b/apps/frontend/src/components/launches/providers/x/x.provider.tsx
@@ -4,5 +4,8 @@ export default withProvider(null, undefined, undefined, async (posts) => {
return 'There can be maximum 4 pictures in a post.';
}
+ if (posts.some(p => p.some(m => m.path.indexOf('mp4') > -1) && p.length > 1)) {
+ return 'There can be maximum 1 video in a post.';
+ }
return true;
}, 280);