fix: hiding of action buttons (#460)

* chore: fix hiding of action buttons
This commit is contained in:
Adithya Krishna
2023-11-03 11:09:43 +05:30
committed by Mythie
parent 2065a0debc
commit 803ab7a7da
3 changed files with 30 additions and 4 deletions

View File

@ -176,7 +176,7 @@ export const AddSignersFormPartial = ({
<div> <div>
<button <button
type="button" type="button"
className="inline-flex h-10 w-10 items-center justify-center text-slate-500 hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-50" className="justify-left inline-flex h-10 w-10 items-center text-slate-500 hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-50"
disabled={ disabled={
isSubmitting || isSubmitting ||
hasBeenSentToRecipientId(signer.nativeId) || hasBeenSentToRecipientId(signer.nativeId) ||

View File

@ -61,8 +61,14 @@ export const DocumentFlowFormContainerContent = ({
...props ...props
}: DocumentFlowFormContainerContentProps) => { }: DocumentFlowFormContainerContentProps) => {
return ( return (
<div className={cn('flex flex-1 flex-col', className)} {...props}> <div
<div className="-mx-2 flex flex-1 flex-col overflow-y-auto px-2">{children}</div> className={cn(
'custom-scrollbar -mx-2 flex flex-1 flex-col overflow-y-auto overflow-x-hidden px-2',
className,
)}
{...props}
>
<div className="flex flex-1 flex-col">{children}</div>
</div> </div>
); );
}; };
@ -90,7 +96,6 @@ export type DocumentFlowFormContainerStepProps = {
}; };
export const DocumentFlowFormContainerStep = ({ export const DocumentFlowFormContainerStep = ({
title,
step, step,
maxStep, maxStep,
}: DocumentFlowFormContainerStepProps) => { }: DocumentFlowFormContainerStepProps) => {

View File

@ -93,3 +93,24 @@
mask-composite: exclude; mask-composite: exclude;
-webkit-mask-composite: xor; -webkit-mask-composite: xor;
} }
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
background: transparent;
border-radius: 10px;
scrollbar-gutter: stable;
}
.custom-scrollbar::-webkit-scrollbar-track {
border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: rgb(100 116 139 / 1);
border-radius: 10px;
width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: rgb(100 116 139 / 0.5);
}