Skip to content

Commit

Permalink
fix icons in square buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Jan 9, 2025
1 parent caf5b9c commit 8c7ab87
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ export function ThemeSettingsModalActionButtons({
onClick={handleUpdate}
className="cl_squaredialogbutton flex gap-1"
>
<FaDownload />
<FaDownload className="cl_squarebutton_icontranslate" />
<span className="text-xs">Update</span>
</DialogButton>
)}
<DialogButton disabled={isWorking} className="cl_squaredialogbutton" onClick={handlePinClick}>
{isPinned ? <FaEye /> : <FaEyeSlash />}
{isPinned ? (
<FaEye className="cl_squarebutton_icontranslate" />
) : (
<FaEyeSlash className="cl_squarebutton_icontranslate" />
)}
</DialogButton>
<DialogButton
disabled={isWorking}
Expand All @@ -64,7 +68,7 @@ export function ThemeSettingsModalActionButtons({
);
}}
>
<FaTrash />
<FaTrash className="cl_squarebutton_icontranslate" />
</DialogButton>
</Focusable>
);
Expand Down
8 changes: 6 additions & 2 deletions src/modules/settings/theme/ThemeSettingsEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ export function ThemeSettingsEntry({ theme }: { theme: Theme }) {
}
}}
>
{isPinned ? <FaEye /> : <FaEyeSlash />}
{isPinned ? (
<FaEye className="cl_squarebutton_icontranslate" />
) : (
<FaEyeSlash className="cl_squarebutton_icontranslate" />
)}
</DialogButton>
<DialogButton
disabled={isWorking}
Expand All @@ -68,7 +72,7 @@ export function ThemeSettingsEntry({ theme }: { theme: Theme }) {
showModal(<ThemeSettingsModal themeId={theme.id} />);
}}
>
<BsGearFill />
<BsGearFill className="cl_squarebutton_icontranslate" />
</DialogButton>
</Focusable>
</div>
Expand Down
10 changes: 7 additions & 3 deletions src/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ MARK: TitleView

@keyframes onboardingButton {
0% {
transform: scale(1) !important;
transform: scale(1);
}
50% {
transform: scale(1.1) !important;
transform: scale(1.1);
}
100% {
transform: scale(1) !important;
transform: scale(1);
}
}

Expand Down Expand Up @@ -650,4 +650,8 @@ MARK: Settings Page
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
}

.cl_squarebutton_icontranslate {
transform: translateY(-2px) !important;
}

0 comments on commit 8c7ab87

Please sign in to comment.