Skip to content

Commit

Permalink
fix onboarding animation
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Jan 9, 2025
1 parent 8c7ab87 commit ea5c8f8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ export function ThemeSettingsModalActionButtons({
onClick={handleUpdate}
className="cl_squaredialogbutton flex gap-1"
>
<FaDownload className="cl_squarebutton_icontranslate" />
<FaDownload className="cl_squaredialogbutton_icontranslate" />
<span className="text-xs">Update</span>
</DialogButton>
)}
<DialogButton disabled={isWorking} className="cl_squaredialogbutton" onClick={handlePinClick}>
{isPinned ? (
<FaEye className="cl_squarebutton_icontranslate" />
<FaEye className="cl_squaredialogbutton_icontranslate" />
) : (
<FaEyeSlash className="cl_squarebutton_icontranslate" />
<FaEyeSlash className="cl_squaredialogbutton_icontranslate" />
)}
</DialogButton>
<DialogButton
Expand All @@ -68,7 +68,7 @@ export function ThemeSettingsModalActionButtons({
);
}}
>
<FaTrash className="cl_squarebutton_icontranslate" />
<FaTrash className="cl_squaredialogbutton_icontranslate" />
</DialogButton>
</Focusable>
);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/title-view/TitleView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function TitleView() {
>
<div style={{ marginRight: "auto" }}>CSS Loader</div>
<DialogButton
className={cn("cl-title-view-button", themes.length > 0 && "cl-animate-onboarding")}
className={cn("cl-title-view-button", themes.length === 0 && "cl-animate-onboarding")}
onClick={onStoreClick}
>
<FaDownload className="cl-title-view-button-icon" />
Expand Down
6 changes: 3 additions & 3 deletions src/modules/settings/theme/ThemeSettingsEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export function ThemeSettingsEntry({ theme }: { theme: Theme }) {
}}
>
{isPinned ? (
<FaEye className="cl_squarebutton_icontranslate" />
<FaEye className="cl_squaredialogbutton_icontranslate" />
) : (
<FaEyeSlash className="cl_squarebutton_icontranslate" />
<FaEyeSlash className="cl_squaredialogbutton_icontranslate" />
)}
</DialogButton>
<DialogButton
Expand All @@ -72,7 +72,7 @@ export function ThemeSettingsEntry({ theme }: { theme: Theme }) {
showModal(<ThemeSettingsModal themeId={theme.id} />);
}}
>
<BsGearFill className="cl_squarebutton_icontranslate" />
<BsGearFill className="cl_squaredialogbutton_icontranslate" />
</DialogButton>
</Focusable>
</div>
Expand Down
10 changes: 7 additions & 3 deletions src/styles/styles-as-string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,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 @@ -654,4 +654,8 @@ MARK: Settings Page
overflow: hidden;
text-overflow: ellipsis;
}
.cl_squaredialogbutton_icontranslate {
transform: translateY(-2px) !important;
}
`;
2 changes: 1 addition & 1 deletion src/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,6 @@ MARK: Settings Page
text-overflow: ellipsis;
}

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

0 comments on commit ea5c8f8

Please sign in to comment.