Skip to content
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

style: Icon rotate browser issue 수정 #43

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/atoms/GreenArrowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ const GreenArrowButton: React.FC<GreenArrowButtonProps> = ({ text, className, on
className={`flex items-center justify-center w-full bg-primary2 text-white p-18 gap-12 rounded-12 heading4-semibold ${className}`}
>
{text}
<AngleIcon fill="#ffffff" width={16} height={16} transform="rotate(180)" />
<AngleIcon
fill="#ffffff"
width={16}
height={16}
transform="rotate(180)"
style={{ transform: 'rotate(180deg)' }}
/>
</button>
);
};
Expand Down
8 changes: 7 additions & 1 deletion src/components/atoms/SortButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ const SortButton: React.FC<{ label: string; onClick: () => void }> = ({ label, o
return (
<button onClick={onClick} className="flex justify-center items-center">
<span className="mr-[4px] text-gray5">{label}</span>
<AngleIcon width={14} height={14} fill="#9299AA" transform="rotate(270)" />
<AngleIcon
width={14}
height={14}
fill="#9299AA"
transform="rotate(270deg)"
style={{ transform: 'rotate(270deg)' }}
/>
</button>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/FriendsFridgeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const FriendsFridgeItem: React.FC<FriendsFridgeItemProps> = ({ name, ingredientC
</div>
</div>
<Link href={`${linkTo}`}>
<AngleIcon width={16} height={16} transform="rotate(180)" />
<AngleIcon width={16} height={16} transform="rotate(180)" style={{ transform: 'rotate(180deg)' }} />
</Link>
</Link>
);
Expand Down
8 changes: 7 additions & 1 deletion src/components/molecules/NavWhiteBoxItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ const NavWhiteBoxItem: React.FC<NavWhiteBoxItemProps> = ({ name, linkTo, text, s
{text ? (
<div className="text-gray4">{text}</div>
) : (
<AngleIcon fill={'gray'} width={16} height={16} transform="rotate(180)" />
<AngleIcon
fill={'gray'}
width={16}
height={16}
transform="rotate(180)"
style={{ transform: 'rotate(180deg)' }}
/>
)}
</Link>
);
Expand Down
10 changes: 8 additions & 2 deletions src/components/organisms/FridgeInfoBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const FridgeInfoBox: React.FC<{
userName: string;
toggleIsOpenFridgeListModal: () => void;
isOkIngredientAdd?: boolean;
}> = ({ currentFridgeInfo, fridgeName, userName = '', toggleIsOpenFridgeListModal, isOkIngredientAdd }) => {
}> = ({ currentFridgeInfo, userName = '', toggleIsOpenFridgeListModal, isOkIngredientAdd }) => {
const router = useRouter();

console.log(currentFridgeInfo);
Expand All @@ -20,7 +20,13 @@ const FridgeInfoBox: React.FC<{
<div className="body1-medium text-gray7">{userName ?? '사용자정보없음'} 님의</div>
<div className="flex items-center gap-[8px]" onClick={toggleIsOpenFridgeListModal}>
<div className="heading1-bold">{currentFridgeInfo.fridgeName ?? '냉장고정보없음'}</div>
<AngleIcon width={16} height={16} fill="#000000" transform="rotate(-90)" />
<AngleIcon
width={16}
height={16}
fill="#000000"
transform="rotate(-90)"
style={{ transform: 'rotate(-90deg)' }}
/>
</div>
</div>
{isOkIngredientAdd && (
Expand Down
9 changes: 8 additions & 1 deletion src/components/organisms/FriendListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ const FriendListItem: React.FC<{
{possibleDelete ? (
<CheckBox onClick={onClick} active={active} />
) : (
<AngleIcon width={16} height={16} fill="#CCCFD7" transform="rotate(180)" className="z-0" />
<AngleIcon
width={16}
height={16}
fill="#CCCFD7"
transform="rotate(180)"
style={{ transform: 'rotate(180deg)' }}
className="z-0"
/>
)}
</div>
);
Expand Down
8 changes: 7 additions & 1 deletion src/components/templates/SelectIngredientTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ const SelectIngredientTemplate: React.FC<{
<div className="body1-medium text-gray7">{nickname} 님의</div>
<div className="flex items-center gap-[8px]" onClick={onOpenFridgeListModal}>
<div className="heading1-bold">{selectedFridge?.name}</div>
<AngleIcon width={16} height={16} fill="#000000" transform="rotate(-90)" />
<AngleIcon
width={16}
height={16}
fill="#000000"
transform="rotate(-90)"
style={{ transform: 'rotate(-90deg)' }}
/>
</div>
</div>
</div>
Expand Down
Loading