Skip to content

Commit

Permalink
feat(dashboard): align sms and push phones (#7425)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChmaraX authored Jan 3, 2025
1 parent 6f3951b commit 4cdd65b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ export const PushContentContainerPreview = ({ children, className, ...rest }: HT

export const PushBackgroundWithPhone = ({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>) => {
return (
<div
className={cn("relative h-60 w-full max-w-72 bg-[url('/images/phones/iphone-push.svg')] bg-cover", className)}
{...rest}
>
{children}
<div className="flex items-center justify-center">
<div
className={cn("relative h-60 w-full max-w-72 bg-[url('/images/phones/iphone-push.svg')] bg-cover", className)}
{...rest}
>
{children}
</div>
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const SmsPhone = ({
isLoading?: boolean;
error?: boolean;
}) => (
<div className="shadow-xs relative h-[200px] max-w-fit overflow-hidden">
<div className="shadow-xs relative h-60 w-full max-w-72 overflow-hidden">
<div className="absolute left-[25px] right-[15px] top-[110px]">
{isLoading ? (
<TypingIndicator />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ChannelTypeEnum, SmsRenderOutput, type GeneratePreviewResponseDto } fro
import { ReactNode } from 'react';

const SmsPreviewContainer = ({ children }: { children: ReactNode }) => {
return <div className="pt-2">{children}</div>;
return <div className="flex items-center justify-center">{children}</div>;
};

export const SmsPreview = ({
Expand Down

0 comments on commit 4cdd65b

Please sign in to comment.