Skip to content

Commit

Permalink
1490 warning update (passportxyz#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
schultztimothy authored Aug 3, 2023
1 parent ef1a9cc commit aed221a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/SupportBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function SupportBanner() {
key={banner.banner_id}
userWarning={{ content: banner.content, link: banner.link, dismissible: true }}
onDismiss={() => dismissSupportBanner(banner.banner_id)}
className="border-t border-accent-2 px-0"
className="max-w-full border-t border-accent-2 px-4"
/>
))}
</>
Expand Down
6 changes: 5 additions & 1 deletion app/components/Warning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export default function Warning({
<div
className={`mx-auto flex w-full items-center justify-center py-2 text-purple-darkpurple ${CONTENT_MAX_WIDTH} ${className}`}
>
{icon || <ExclamationCircleIcon height={24} color={"#D44D6E"} className="mr-4" />}
{icon || (
<div className="mr-4 w-4">
<ExclamationCircleIcon height={24} color={"#D44D6E"} />
</div>
)}
{content}{" "}
{link && (
<a href={link} target="_blank" rel="noreferrer" className="ml-2 underline">
Expand Down

0 comments on commit aed221a

Please sign in to comment.