chore: small changes to dropdown & main sidebar (#9719)
This commit is contained in:
1 parent
407b0518b3
commit
6fb51db6ac
6 files changed
+17
-17
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { classNames } from "@calcom/lib";
|
||||
|
||||
export function Divider({ className, ...props }: JSX.IntrinsicElements["hr"]) {
|
||||
className = classNames("border-subtle", className);
|
||||
className = classNames("border-subtle my-1", className);
|
||||
return <hr className={className} {...props} />;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export function EmptyScreen({
|
||||
<div
|
||||
data-testid="empty-screen"
|
||||
className={classNames(
|
||||
"min-h-80 flex w-full flex-col items-center justify-center rounded-md p-7 lg:p-20",
|
||||
"select-none flex-col items-center justify-center rounded-lg p-7 lg:p-20",
|
||||
border && "border-subtle border",
|
||||
dashedBorder && "border-dashed",
|
||||
className
|
||||
|
||||
@@ -47,12 +47,12 @@ export const AnimatedPopover = ({
|
||||
<div
|
||||
ref={ref}
|
||||
className={classNames(
|
||||
"hover:border-emphasis border-default text-default hover:text-emphasis mb-4 flex h-9 max-h-72 items-center justify-between whitespace-nowrap rounded-md border px-3 py-2 text-sm hover:cursor-pointer focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-1",
|
||||
"hover:border-emphasis border-default text-default hover:text-emphasis radix-state-open:border-emphasis radix-state-open:outline-none radix-state-open:ring-2 radix-state-open:ring-emphasis -mr-0.5 mb-4 flex h-9 max-h-72 items-center justify-between whitespace-nowrap rounded-md border px-3 py-2 text-sm hover:cursor-pointer",
|
||||
popoverTriggerClassNames
|
||||
)}>
|
||||
<div className="max-w-36 flex items-center">
|
||||
<Tooltip content={text}>
|
||||
<div className="truncate">
|
||||
<div className="select-none truncate font-medium">
|
||||
{text}
|
||||
{count && count > 0 && (
|
||||
<div className="flex h-4 w-4 items-center justify-center rounded-full">{count}</div>
|
||||
@@ -60,7 +60,7 @@ export const AnimatedPopover = ({
|
||||
</div>
|
||||
</Tooltip>
|
||||
<ChevronDown
|
||||
className={classNames("ml-2 transition-transform duration-150", open && "rotate-180")}
|
||||
className={classNames("ml-2 w-4 transition-transform duration-150", open && "rotate-180")}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,7 +68,7 @@ export const AnimatedPopover = ({
|
||||
<Popover.Content side="bottom" align={align} asChild>
|
||||
<div
|
||||
className={classNames(
|
||||
"bg-default border-default scroll-bar absolute z-50 mt-2 max-h-64 w-56 overflow-y-auto rounded-md border py-[2px] shadow-sm focus-within:outline-none",
|
||||
"bg-default border-subtle scroll-bar absolute z-50 mt-1 max-h-64 w-56 select-none overflow-y-auto rounded-md border py-[2px] shadow-md focus-within:outline-none",
|
||||
align === "end" && "-translate-x-[228px]"
|
||||
)}>
|
||||
{children}
|
||||
|
||||
Reference in new issue
Block a user