Skip to content

Commit

Permalink
Merge pull request #3446 from JoinColony/fix/3056-user-hub-error-styles
Browse files Browse the repository at this point in the history
fix: update UserHub transactions to have correct styles for 720-768px screen
  • Loading branch information
Nortsova authored Oct 30, 2024
2 parents e39ba6e + 3e17b4b commit 5fbfbf9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const GroupedTransactionContent: FC<GroupedTransactionContentProps> = ({
<NotificationBanner
status="error"
callToActionClassName="w-full no-underline"
contentClassName="@[600px]/notificationBanner:flex-col"
callToAction={
<div className="flex justify-between">
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const NotificationBanner: FC<NotificationBannerProps> = ({
callToAction,
descriptionClassName,
callToActionClassName,
contentClassName,
}) => {
return (
<div
Expand All @@ -40,7 +41,12 @@ const NotificationBanner: FC<NotificationBannerProps> = ({
})}
/>
) : null}
<div className="flex flex-1 flex-col items-start gap-2 @[600px]/notificationBanner:flex-row @[600px]/notificationBanner:items-center">
<div
className={clsx(
'flex flex-1 flex-col items-start gap-2 @[600px]/notificationBanner:flex-row @[600px]/notificationBanner:items-center',
contentClassName,
)}
>
<div className="flex flex-1 flex-col items-start gap-2 text-md break-word">
{children}
{description ? (
Expand Down
1 change: 1 addition & 0 deletions src/components/v5/shared/NotificationBanner/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export type NotificationBannerProps = PropsWithChildren<{
callToAction?: ReactNode;
descriptionClassName?: string;
callToActionClassName?: string;
contentClassName?: string;
}>;

0 comments on commit 5fbfbf9

Please sign in to comment.