Skip to content

Commit

Permalink
FIXED: Warranty Card UI Improve Responsiveness and Text Overflow Han…
Browse files Browse the repository at this point in the history
…dling (#9491)
  • Loading branch information
modamaan authored Dec 22, 2024
1 parent 03574e9 commit 2ae3d79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Assets/AssetWarrantyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function AssetWarrantyCard(props: { asset: AssetData }) {
}, [isCopied]);

return (
<div className="warranty-card relative z-10 flex h-full w-screen flex-col overflow-hidden p-6 text-white transition-all hover:scale-[1.01] hover:from-primary-600 hover:to-primary-700 md:w-full md:rounded-xl xl:w-96">
<div className="warranty-card relative z-10 flex h-full w-full flex-col overflow-hidden p-6 text-white transition-all hover:scale-[1.01] hover:from-primary-600 hover:to-primary-700 rounded-xl xl:w-96">
<div className="mb-3 text-right text-lg font-bold italic">
{asset.manufacturer}
</div>
Expand Down Expand Up @@ -78,7 +78,10 @@ export default function AssetWarrantyCard(props: { asset: AssetData }) {
["Phone", asset.support_phone, "l-phone"],
["Email", asset.support_email, "l-envelope"],
].map((item) => (
<div className="flex items-center">
<div
key={`support-${item[0]}`}
className="flex flex-wrap items-center"
>
{item[1] && (
<>
<div className="w-16 italic text-secondary-200">
Expand Down

0 comments on commit 2ae3d79

Please sign in to comment.