mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-06 03:17:08 -06:00
Disable word hyphenation on md+ screens
This commit is contained in:
@@ -55,12 +55,11 @@ const ItemCard = ({banner, bannerBlur, title, description, links, location}: Ite
|
||||
className="col-span-12 sm:col-span-9 lg:col-span-8 max-h-full overflow-hidden drop-shadow-2xl pb-2 md:p-1 pl-2">
|
||||
<Link href={{pathname: location}}
|
||||
className="text-lg sm:text-2xl md:text-3xl font-semibold">{title}</Link>
|
||||
<div className="mt-0 md:mt-1.5 text-base sm:text-xl md:text-xl overflow-hidden"
|
||||
<div className="description mt-0 md:mt-1.5 text-base sm:text-xl md:text-xl overflow-hidden"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
navigate();
|
||||
}}
|
||||
style={{hyphens: "auto"}}>
|
||||
}}>
|
||||
<ReactMarkdown>{description}</ReactMarkdown>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -59,4 +59,11 @@ html, body {
|
||||
height: 75%;
|
||||
@apply transition-transform drop-shadow-md hover:scale-[120%] opacity-80 hover:opacity-100 text-white m-auto aspect-square;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
hyphens: auto;
|
||||
@screen md {
|
||||
hyphens: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user