(refactor) InfoBox: setting max width

This commit is contained in:
Knee Cola
2025-12-29 13:33:09 +01:00
parent 52662e0fb3
commit ddf83fe0e5
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ export const EnterOrSignInButton: FC<{ session: any, locale: string, providers:
return (
<>
{
!session ? (
session ? (
<span className="flex justify-center mt-4">
<Link

View File

@@ -17,7 +17,7 @@ export const InfoBox: FC<{
<span className="ml-2 text-sm text-gray-500 group-open:hidden"><ChevronDownIcon className="w-5 h-5 inline" /></span>
<span className="ml-2 text-sm text-gray-500 hidden group-open:inline"><ChevronUpIcon className="w-5 h-5 inline" /></span>
</summary>
<div className="mt-2 italic text-sm text-gray-400 group-open:animate-[animateDown_0.2s_linear_forwards]">{children}</div>
<div className="mt-2 italic text-sm text-gray-400 group-open:animate-[animateDown_0.2s_linear_forwards] max-w-[30rem]">{children}</div>
</details>
)
}