feat: add classes
This commit is contained in:
@@ -33,6 +33,7 @@ export const BackToTopFAB = () => {
|
||||
behavior: "smooth",
|
||||
})
|
||||
}}
|
||||
className="xlog-back-to-top"
|
||||
>
|
||||
<i className="icon-[mingcute--arow-to-up-line]"></i>
|
||||
</FABBase>
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user