Skip to content

Commit 1c61e76

Browse files
committed
fix: better block view
1 parent 70d0724 commit 1c61e76

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/frontend/src/components/launches/information.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ export const InformationComponent: FC<{
116116
{isValid ? <Valid /> : <Invalid />}
117117

118118
{!isGlobal && (
119-
<div className="text-[10px] font-[600] flex justify-center items-center">
119+
<div className={clsx("text-[10px] font-[600] flex justify-center items-center", !isValid && 'text-white')}>
120120
{totalChars}/{totalAllowedChars}
121121
</div>
122122
)}
123123
{((isGlobal && selectedIntegrations.length) || !isValid) && (
124124
<svg
125-
className="group-hover:rotate-180"
125+
className={clsx('group-hover:rotate-180', !isValid && 'text-white')}
126126
xmlns="http://www.w3.org/2000/svg"
127127
width="16"
128128
height="16"

apps/frontend/src/components/new-launch/editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export const EditorWrapper: FC<{
343343
<div
344344
className={clsx(
345345
'relative flex-col gap-[20px] flex-1',
346-
items.length === 1 && 'flex',
346+
(items.length === 1 || !canEdit) && 'flex',
347347
!canEdit && !isCreateSet && 'bg-newSettings rounded-[12px]'
348348
)}
349349
>
@@ -399,7 +399,8 @@ export const EditorWrapper: FC<{
399399
'relative flex flex-col gap-[20px] flex-1 bg-newSettings',
400400
index === 0 && 'rounded-t-[12px]',
401401
index === items.length - 1 && 'rounded-b-[12px]',
402-
!canEdit && !isCreateSet && 'blur-s'
402+
!canEdit && !isCreateSet && 'blur-s',
403+
!canEdit && index > 0 && 'hidden'
403404
)}
404405
>
405406
<div className="flex gap-[5px] flex-1 w-full">

apps/frontend/src/components/new-launch/providers/instagram/instagram.preview.tsx

Whitespace-only changes.

0 commit comments

Comments
 (0)