fix: 좋아요·댓글·보내기 아이콘 크기가 달라 간격이 어긋나 보이던 것 — 하트는 10% 키우고 보내기는 5% 줄여 보이는 폭을 맞춤
This commit is contained in:
1 parent
271e625767
commit
0689bdf46e
1 file changed
+3
-2
@@ -2,9 +2,10 @@ type P = { className?: string }
|
||||
|
||||
const line = { fill: 'none', stroke: 'currentColor', strokeLinecap: 'round', strokeLinejoin: 'round' } as const
|
||||
|
||||
// 좋아요·댓글·보내기 세 아이콘이 나란히 놓일 때 크기가 같아 보이게: 하트는 원래 그림이 작아 10% 키우고(보이는 칸을 좁힘), 보내기는 커서 5% 줄인다
|
||||
export function HeartIcon({ className }: P) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" className={className} aria-hidden="true">
|
||||
<svg viewBox="1.1 2.75 21.8 21.8" className={className} aria-hidden="true">
|
||||
<path d="M12 20.5s-8-4.9-8-11A4.6 4.6 0 0 1 12 6.8a4.6 4.6 0 0 1 8 2.7c0 6.1-8 11-8 11z" />
|
||||
</svg>
|
||||
)
|
||||
@@ -20,7 +21,7 @@ export function CommentIcon({ className }: P) {
|
||||
|
||||
export function SendIcon({ className }: P) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" className={className} aria-hidden="true">
|
||||
<svg viewBox="-0.65 -0.65 25.3 25.3" className={className} aria-hidden="true">
|
||||
<path d="M21 3 10 14M21 3l-6.5 18-4-7.5L3 9.5z" />
|
||||
</svg>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user