-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Refactor: modify card list grid (#350) #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| pnpm exec lint-staged || exit 1 | ||
| pnpm lint-staged || exit 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ const LinkCard = React.forwardRef<HTMLDivElement, LinkCardProps>(function LinkCa | |
| return ( | ||
| <div | ||
| ref={ref} | ||
| className="border-gray200 hover:bg-gray50 active:bg-blue50 focus:border-blue500 relative flex h-58 w-47 cursor-pointer flex-col overflow-hidden rounded-2xl border transition-colors" | ||
| className="border-gray200 hover:bg-gray50 active:bg-blue50 focus:border-blue500 flexs relative aspect-47/58 w-full cursor-pointer flex-col overflow-hidden rounded-2xl border transition-colors" | ||
| tabIndex={0} | ||
| onClick={onClick} | ||
| onKeyDown={handleKeyDown} | ||
|
|
@@ -42,15 +42,15 @@ const LinkCard = React.forwardRef<HTMLDivElement, LinkCardProps>(function LinkCa | |
| /> | ||
| )} | ||
|
|
||
| <div className="bg-gray900 relative h-22 w-full shrink-0"> | ||
| <div className="bg-gray900 relative aspect-94/47 w-full max-w-94 shrink-0"> | ||
| <Image | ||
| src={imageUrl ? imageUrl : '/images/default_linkcard_image.png'} | ||
| alt={title} | ||
| fill | ||
| className="border-gray200 border-b object-cover" | ||
| /> | ||
| </div> | ||
| <div className="flex flex-1 flex-col justify-between p-3"> | ||
| <div className="flex aspect-94/69 w-full flex-1 flex-col justify-between p-3"> | ||
|
Comment on lines
+45
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check Tailwind version
echo "=== Tailwind version ==="
rg -A 2 '"tailwindcss"' --glob 'package.json'
echo ""
echo "=== Tailwind config files ==="
find . -maxdepth 2 -type f -name 'tailwind.config.*' -o -name 'tailwind.config.js' -o -name 'tailwind.config.ts'
echo ""
echo "=== Checking tailwind.config content ==="
if [ -f "tailwind.config.js" ]; then
cat -n tailwind.config.js
elif [ -f "tailwind.config.ts" ]; then
head -100 -n tailwind.config.ts
fi
echo ""
echo "=== Searching for aspect and maxWidth definitions ==="
rg -n 'aspect|aspectRatio|maxWidth|max-w' --glob 'tailwind.config.*'
echo ""
echo "=== Searching for custom utility definitions ==="
rg -n 'aspect-94|max-w-94' --glob '*.css' --glob '*.tsx' --glob '*.jsx'Repository: Team-SoFa/linkiving Length of output: 807 🏁 Script executed: #!/bin/bash
echo "=== CSS files in project ==="
find . -type f -name '*.css' | head -20
echo ""
echo "=== Checking global CSS for theme definitions ==="
if [ -f "src/index.css" ]; then
cat -n src/index.css
elif [ -f "src/globals.css" ]; then
cat -n src/globals.css
elif [ -f "src/app.css" ]; then
cat -n src/app.css
fi
echo ""
echo "=== Searching for `@theme` or `@utility` in CSS ==="
rg -n '@theme|@utility|aspect-94|max-w-94' --type css
echo ""
echo "=== Directory structure ==="
ls -la src/
echo ""
echo "=== Check if aspect and max-w are in any config files ==="
rg -n 'aspectRatio|aspect-' --type css --type ts --type js -A 2Repository: Team-SoFa/linkiving Length of output: 4103 🏁 Script executed: #!/bin/bash
echo "=== src/styles/globals.css content ==="
cat -n src/styles/globals.css
echo ""
echo "=== src/styles/custom/colors.css content ==="
cat -n src/styles/custom/colors.css
echo ""
echo "=== src/styles/custom/colorTokens.css content ==="
cat -n src/styles/custom/colorTokens.css
echo ""
echo "=== src/styles/custom/typoTokens.css content ==="
cat -n src/styles/custom/typoTokens.cssRepository: Team-SoFa/linkiving Length of output: 13407 🏁 Script executed: #!/bin/bash
echo "=== Search for all `@theme` blocks in project ==="
rg -n '@theme' src/
echo ""
echo "=== Search for aspect or maxWidth in entire src directory ==="
rg -n 'aspect-|max-w-' src/ --type css --type ts --type tsx | grep -E '@theme|aspectRatio|maxWidth' || echo "No aspect/maxWidth theme definitions found"
echo ""
echo "=== Check if utilities are actually being used ==="
rg -n 'aspect-94|max-w-94|aspect-47' src/ | wc -l
echo ""
echo "=== Verify Tailwind v4 standard utilities ==="
echo "Checking Tailwind documentation for standard aspect-ratio and max-width utilities..."
echo "Standard Tailwind v4 would use predefined values or arbitrary values like:"
echo " - aspect-video, aspect-square, etc. (not aspect-94/47)"
echo " - max-w-sm, max-w-md, etc. or max-w-[94px] (not max-w-94)"Repository: Team-SoFa/linkiving Length of output: 714
Tailwind v4.1.17에서 이 유틸리티들을 사용하려면 반드시 🤖 Prompt for AI Agents |
||
| <div className="flex flex-col gap-1"> | ||
| <span className="truncate text-sm font-semibold">{title}</span> | ||
| <div className="flex items-center gap-1"> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flexs오타로 인해 flex 레이아웃이 적용되지 않습니다.flexs는 유효한 Tailwind 클래스가 아니어서flex-col이 동작하지 않습니다.flex로 수정하세요.🛠️ 수정 제안
📝 Committable suggestion
🤖 Prompt for AI Agents