Skip to content

Commit a8e2ba8

Browse files
committed
Make specialty icons smaller
1 parent 552eeaf commit a8e2ba8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

components/Icon.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ export function SmallIcon({ thing, location, sizeSet = "m", children }: { thing:
2828
const color = getStarColor((hasStars(thing) ? thing.stars : 0) ?? 0)
2929
const sizes = {
3030
m: "w-24 sm:w-28 lg:w-32",
31-
s: "w-10 sm:w-12 lg:w-14"
31+
s: "w-5 sm:w-6 lg:w-7"
3232
}
3333

34-
return <><FormattedLink key={thing.name} location={location} href={`/${thing.urlpath}/${urlify(thing.name, false)}`} className={`bg-slate-300 dark:bg-slate-800 ${sizes[sizeSet]} m-1 relative rounded-xl transition-all duration-100 hover:outline outline-slate-800 dark:outline-slate-300 font-bold text-sm`} >
35-
<div className={`${color} rounded-xl ${sizes[sizeSet]}`}>
36-
<Icon icon={thing} className={`${sizeSet == "s" ? "rounded-xl" : "rounded-t-xl"} m-0 p-0`} />
34+
return <><FormattedLink key={thing.name} location={location} href={`/${thing.urlpath}/${urlify(thing.name, false)}`} className={`bg-slate-300 dark:bg-slate-800 ${sizes[sizeSet]} relative ${sizeSet == "s" ? "rounded-lg m-0.5 outline-1" : "rounded-xl m-1 outline-3"} transition-all duration-100 hover:outline outline-slate-800 dark:outline-slate-300 font-bold text-sm`} >
35+
<div className={`${color} ${sizeSet == "s" ? "rounded-lg" : "rounded-t-xl"} ${sizes[sizeSet]}`}>
36+
<Icon icon={thing} className={`${sizeSet == "s" ? "rounded-lg" : "rounded-t-xl"} m-0 p-0`} />
3737
{hasElement(thing) && thing.element && sizeSet != "s" && <span className="absolute block p-0.5 top-0 w-full">
3838
<div className="flex flex-col">
3939
{thing.element.map(e => <div key={e} className="w-6 md:w-8">

0 commit comments

Comments
 (0)