diff --git a/website/src/components/Modal/index.tsx b/website/src/components/Modal/index.tsx index 97db5858cad0..da48100ddbf4 100644 --- a/website/src/components/Modal/index.tsx +++ b/website/src/components/Modal/index.tsx @@ -40,7 +40,7 @@ export default function Modal({ onClick={() => backdropExit && onFadeOut()} />
-
+
{!useCustomTitle && (
diff --git a/website/src/components/Modal/styles.css b/website/src/components/Modal/styles.css index e941029ebab4..86d8b9457313 100644 --- a/website/src/components/Modal/styles.css +++ b/website/src/components/Modal/styles.css @@ -9,7 +9,7 @@ &-container { @apply absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 min-w-[400px] lg:min-w-[600px]; - @apply p-8 opacity-0; + @apply opacity-0; @apply transition-opacity duration-[225ms] ease-in-out delay-0; &.fade-in { diff --git a/website/src/components/Resource/Card/index.tsx b/website/src/components/Resource/Card/index.tsx index 5a1ebeb78fdb..33678489e42d 100644 --- a/website/src/components/Resource/Card/index.tsx +++ b/website/src/components/Resource/Card/index.tsx @@ -37,14 +37,7 @@ export default function ResourceCard({ const authorAvatar = `${authorLink}.png?size=80`; return ( -
+
{resource.name} @@ -55,7 +48,7 @@ export default function ResourceCard({ /> )}
-
+
diff --git a/website/src/components/Resource/Card/styles.css b/website/src/components/Resource/Card/styles.css index e0b7657e2fe9..406507a31836 100644 --- a/website/src/components/Resource/Card/styles.css +++ b/website/src/components/Resource/Card/styles.css @@ -3,10 +3,7 @@ @apply flex flex-col gap-y-2 w-full min-h-[12rem] p-4; @apply transition-colors duration-500 bg-base-200; @apply border-2 border-base-200 rounded-lg; - - &-clickable { - @apply cursor-pointer hover:border-primary; - } + @apply hover:border-primary; } &-header { @@ -21,7 +18,7 @@ } &-expand { - @apply flex-none fill-current; + @apply flex-none fill-current cursor-pointer; } } diff --git a/website/src/components/Resource/DetailCard/index.tsx b/website/src/components/Resource/DetailCard/index.tsx index c0cbfeed1276..cddf516d9b27 100644 --- a/website/src/components/Resource/DetailCard/index.tsx +++ b/website/src/components/Resource/DetailCard/index.tsx @@ -80,7 +80,7 @@ export default function ResourceDetailCard({ resource }: Props) { src={authorAvatar} className="detail-card-avatar" decoding="async" - > + />
{resource.name} {resource.author} @@ -123,10 +123,7 @@ export default function ResourceDetailCard({ resource }: Props) {
- {" "} + {" "} {(pypiData && pypiData.info.license) || "无"}
diff --git a/website/src/components/Resource/DetailCard/styles.css b/website/src/components/Resource/DetailCard/styles.css index 47e66e263dba..c315d5f6c231 100644 --- a/website/src/components/Resource/DetailCard/styles.css +++ b/website/src/components/Resource/DetailCard/styles.css @@ -35,7 +35,7 @@ @apply flex flex-col w-full lg:flex-row; &-left { - @apply flex flex-col min-h-[150px] lg:basis-3/4; + @apply flex flex-col min-h-[150px] lg:basis-3/4 max-w-[65%]; } &-divider { @@ -43,11 +43,11 @@ } &-right { - @apply flex flex-col justify-start gap-y-2 lg:basis-1/4; + @apply flex flex-col justify-start gap-y-2 lg:basis-1/4 max-w-[45%]; } } &-meta-item { - @apply text-sm whitespace-nowrap; + @apply text-sm truncate; } }