Skip to content

Commit faef577

Browse files
committed
feat: generator
1 parent 0e5d6f8 commit faef577

File tree

5 files changed

+74
-70
lines changed

5 files changed

+74
-70
lines changed

apps/frontend/src/app/(extension)/modal/[style]/[platform]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { StandaloneModal } from '@gitroom/frontend/components/standalone-modal/s
44
import { usePathname } from 'next/navigation';
55
export default async function Modal() {
66
return (
7-
<div className="text-textColor">
7+
<div className="text-textColor h-screen w-screen">
88
<StandaloneModal />
99
</div>
1010
);

apps/frontend/src/components/launches/layout.standalone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const AppLayout = ({ children }: { children: ReactNode }) => {
1515
}, [params]);
1616
return (
1717
<div
18-
className={`hideCopilot ${style} h-[100vh] !padding-[50px] w-full text-textColor flex flex-col !bg-none`}
18+
className={`hideCopilot ${style} h-[100vh] w-full text-textColor flex flex-1 flex-col !bg-none`}
1919
>
2020
<style>
2121
{`

apps/frontend/src/components/media/media.component.tsx

Lines changed: 50 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -690,64 +690,62 @@ export const MultiMediaComponent: FC<{
690690
</ReactSortable>
691691
)}
692692
</div>
693-
{!dummy && (
694-
<div className="flex gap-[8px] px-[12px] border-t border-newColColor w-full b1 text-textColor">
695-
{!mediaNotAvailable && (
696-
<div className="flex py-[10px] b2 items-center gap-[4px]">
697-
<div
698-
onClick={showModal}
699-
className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]"
700-
>
701-
<div className="flex gap-[8px] items-center">
702-
<div>
703-
<InsertMediaIcon />
704-
</div>
705-
<div className="text-[10px] font-[600] maxMedia:hidden block">
706-
{t('insert_media', 'Insert Media')}
707-
</div>
693+
<div className="flex gap-[8px] px-[12px] border-t border-newColColor w-full b1 text-textColor">
694+
{!mediaNotAvailable && (
695+
<div className="flex py-[10px] b2 items-center gap-[4px]">
696+
<div
697+
onClick={showModal}
698+
className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]"
699+
>
700+
<div className="flex gap-[8px] items-center">
701+
<div>
702+
<InsertMediaIcon />
703+
</div>
704+
<div className="text-[10px] font-[600] maxMedia:hidden block">
705+
{t('insert_media', 'Insert Media')}
708706
</div>
709707
</div>
710-
<div
711-
onClick={designMedia}
712-
className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]"
713-
>
714-
<div className="flex gap-[5px] items-center">
715-
<div>
716-
<DesignMediaIcon />
717-
</div>
718-
<div className="text-[10px] font-[600] iconBreak:hidden block">
719-
{t('design_media', 'Design Media')}
720-
</div>
708+
</div>
709+
<div
710+
onClick={designMedia}
711+
className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]"
712+
>
713+
<div className="flex gap-[5px] items-center">
714+
<div>
715+
<DesignMediaIcon />
716+
</div>
717+
<div className="text-[10px] font-[600] iconBreak:hidden block">
718+
{t('design_media', 'Design Media')}
721719
</div>
722720
</div>
721+
</div>
723722

724-
<ThirdPartyMedia allData={allData} onChange={changeMedia} />
723+
<ThirdPartyMedia allData={allData} onChange={changeMedia} />
725724

726-
{!!user?.tier?.ai && (
727-
<>
728-
<AiImage value={text} onChange={changeMedia} />
729-
<AiVideo value={text} onChange={changeMedia} />
730-
</>
731-
)}
732-
</div>
733-
)}
734-
{!mediaNotAvailable && (
735-
<div className="text-newColColor h-full flex items-center">
736-
<VerticalDividerIcon />
737-
</div>
738-
)}
739-
{!!toolBar && (
740-
<div className="flex py-[10px] b2 items-center gap-[4px]">
741-
{toolBar}
742-
</div>
743-
)}
744-
{information && (
745-
<div className="flex-1 justify-end flex py-[10px] b2 items-center gap-[4px]">
746-
{information}
747-
</div>
748-
)}
749-
</div>
750-
)}
725+
{!!user?.tier?.ai && (
726+
<>
727+
<AiImage value={text} onChange={changeMedia} />
728+
<AiVideo value={text} onChange={changeMedia} />
729+
</>
730+
)}
731+
</div>
732+
)}
733+
{!mediaNotAvailable && (
734+
<div className="text-newColColor h-full flex items-center">
735+
<VerticalDividerIcon />
736+
</div>
737+
)}
738+
{!!toolBar && (
739+
<div className="flex py-[10px] b2 items-center gap-[4px]">
740+
{toolBar}
741+
</div>
742+
)}
743+
{information && (
744+
<div className="flex-1 justify-end flex py-[10px] b2 items-center gap-[4px]">
745+
{information}
746+
</div>
747+
)}
748+
</div>
751749
</div>
752750
<div className="text-[12px] text-red-400">{error}</div>
753751
</>

apps/frontend/src/components/new-launch/manage.modal.tsx

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {
107107
className="w-[20px] h-[20px] rounded-[4px]"
108108
alt={currentIntegration.identifier}
109109
/>
110-
<SettingsIcon size={15} className="text-white absolute -end-[5px] -bottom-[5px]" />
110+
<SettingsIcon
111+
size={15}
112+
className="text-white absolute -end-[5px] -bottom-[5px]"
113+
/>
111114
</div>
112115
<div>{currentIntegration.name} Settings</div>
113116
</div>
@@ -519,22 +522,26 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {
519522
? t('schedule', 'Schedule')
520523
: t('update', 'Update')}
521524
</div>
522-
<div className="flex justify-center items-center h-[20px] w-[20px] pt-[4px] arrow-change">
523-
<DropdownArrowSmallIcon className="group-hover:rotate-180 text-white" />
524-
</div>
525+
{!dummy && (
526+
<div className="flex justify-center items-center h-[20px] w-[20px] pt-[4px] arrow-change">
527+
<DropdownArrowSmallIcon className="group-hover:rotate-180 text-white" />
528+
</div>
529+
)}
525530
</button>
526531

527-
<button
528-
onClick={schedule('now')}
529-
disabled={
530-
selectedIntegrations.length === 0 || loading || locked
531-
}
532-
className="rounded-[8px] z-[300] disabled:cursor-not-allowed disabled:opacity-80 hidden group-hover:flex absolute bottom-[100%] -left-[12px] p-[12px] w-[206px] bg-newBgColorInner"
533-
>
534-
<div className="text-white rounded-[8px] bg-[#D82D7E] h-[44px] w-full flex justify-center items-center post-now">
535-
Post Now
536-
</div>
537-
</button>
532+
{!dummy && (
533+
<button
534+
onClick={schedule('now')}
535+
disabled={
536+
selectedIntegrations.length === 0 || loading || locked
537+
}
538+
className="rounded-[8px] z-[300] disabled:cursor-not-allowed disabled:opacity-80 hidden group-hover:flex absolute bottom-[100%] -left-[12px] p-[12px] w-[206px] bg-newBgColorInner"
539+
>
540+
<div className="text-white rounded-[8px] bg-[#D82D7E] h-[44px] w-full flex justify-center items-center post-now">
541+
Post Now
542+
</div>
543+
</button>
544+
)}
538545
</div>
539546
)}
540547
</div>

apps/frontend/src/components/standalone-modal/standalone.modal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export const StandaloneModal: FC = () => {
5353
'*'
5454
);
5555
}}
56-
padding="50px"
5756
mutate={() => {}}
5857
integrations={integrations}
5958
reopenModal={() => {}}

0 commit comments

Comments
 (0)