feat: add classes

This commit is contained in:
DIYgod
2023-08-07 11:42:30 +01:00
parent 7f9f3648cb
commit f2f77a76b3
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -33,6 +33,7 @@ export const BackToTopFAB = () => {
behavior: "smooth",
})
}}
className="xlog-back-to-top"
>
<i className="icon-[mingcute--arow-to-up-line]"></i>
</FABBase>
+2 -2
View File
@@ -93,7 +93,7 @@ export const FABBase = (
<button
className={cn(
"bg-white inline-flex w-8 h-8 mt-2 items-center justify-center rounded-md border border-accent text-accent opacity-50 hover:opacity-100 focus:opacity-100 focus:outline-none transition-all duration-300",
(!show || appearTransition) && "translate-x-[60px]",
(!show || appearTransition) && "translate-x-[60px] xlog-fab-inactive",
!mounted && "hidden",
className,
)}
@@ -127,7 +127,7 @@ export const FABContainer = (props: {
return (
<div
className={cn(
"z-[9] right-4 bottom-4 bottom-[calc(1rem+env(safe-area-inset-bottom))] fixed font-lg flex flex-col",
"z-[9] right-4 bottom-[calc(1rem+env(safe-area-inset-bottom))] fixed font-lg flex flex-col xlog-fab",
)}
>
{fabConfig.map((config) => {