Darkmode Fixes (#8191)
This commit is contained in:
1 parent
ab639591da
commit
e3a1f20cc8
16 files changed
+29
-106
No files matched your search
@@ -15,7 +15,7 @@ export const HorizontalLines = ({
|
||||
const id = useId();
|
||||
return (
|
||||
<div
|
||||
className=" col-start-1 col-end-2 row-start-1 grid divide-y divide-gray-300"
|
||||
className=" divide-subtle col-start-1 col-end-2 row-start-1 grid divide-y"
|
||||
style={{
|
||||
gridTemplateRows: `repeat(${hours.length}, minmax(${1.75 * numberOfGridStopsPerCell}rem,1fr)`,
|
||||
}}>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import type dayjs from "@calcom/dayjs";
|
||||
|
||||
export const VeritcalLines = ({ days }: { days: dayjs.Dayjs[] }) => {
|
||||
return (
|
||||
<div
|
||||
className="col-start-1 col-end-2 row-start-1 grid auto-cols-auto grid-rows-1 divide-x divide-gray-300
|
||||
className="divide-subtle col-start-1 col-end-2 row-start-1 grid auto-cols-auto grid-rows-1 divide-x
|
||||
sm:pr-8">
|
||||
{days.map((_, i) => (
|
||||
<div
|
||||
|
||||
@@ -97,7 +97,7 @@ export default function MemberListItem(props: Props) {
|
||||
const bookingLink = `${urlWithoutProtocol}/${props.member.username}`;
|
||||
|
||||
return (
|
||||
<li className="divide-y px-5">
|
||||
<li className="divide-subtle divide-y px-5">
|
||||
<div className="my-4 flex justify-between">
|
||||
<div className="flex w-full flex-col justify-between sm:flex-row">
|
||||
<div className="flex">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useState } from "react";
|
||||
|
||||
import { MembershipRole } from "@calcom/prisma/client";
|
||||
import type { MembershipRole } from "@calcom/prisma/client";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { showToast } from "@calcom/ui";
|
||||
|
||||
@@ -47,7 +47,7 @@ export default function TeamInviteList(props: Props) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<ul className="mb-8 divide-y divide-neutral-200 rounded bg-default">
|
||||
<ul className="bg-default divide-subtle mb-8 divide-y rounded">
|
||||
{props.teams.map((team) => (
|
||||
<TeamInviteListItem
|
||||
key={team?.id as number}
|
||||
|
||||
@@ -77,7 +77,7 @@ export default function TeamInviteListItem(props: Props) {
|
||||
);
|
||||
|
||||
return (
|
||||
<li className="bg-subtle border-emphasis divide-y rounded-md border px-5 py-4">
|
||||
<li className="bg-subtle border-emphasis divide-subtle divide-y rounded-md border px-5 py-4">
|
||||
<div
|
||||
className={classNames(
|
||||
"flex items-center justify-between",
|
||||
|
||||
@@ -2,7 +2,7 @@ import { SkeletonAvatar, SkeletonText } from "@calcom/ui";
|
||||
|
||||
function SkeletonLoader() {
|
||||
return (
|
||||
<ul className="animate-pulse divide-neutral-200 bg-default sm:overflow-hidden">
|
||||
<ul className="bg-default divide-subtle animate-pulse sm:overflow-hidden">
|
||||
<SkeletonItem />
|
||||
<SkeletonItem />
|
||||
</ul>
|
||||
@@ -13,7 +13,7 @@ export default SkeletonLoader;
|
||||
|
||||
function SkeletonItem() {
|
||||
return (
|
||||
<li className="group mb-4 flex h-[90px] w-full items-center justify-between rounded-md border border-subtle px-4 py-4 sm:px-6">
|
||||
<li className="border-subtle group mb-4 flex h-[90px] w-full items-center justify-between rounded-md border px-4 py-4 sm:px-6">
|
||||
<div className="flex-grow truncate text-sm">
|
||||
<div className="flex">
|
||||
<SkeletonAvatar className="h-10 w-10" />
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { Workflow, WorkflowStep, Membership } from "@prisma/client";
|
||||
import { useSession } from "next-auth/react";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import { useState } from "react";
|
||||
@@ -56,7 +55,6 @@ export default function WorkflowListPage({ workflows, profileOptions, hasNoWorkf
|
||||
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
|
||||
const [workflowToDeleteId, setwWorkflowToDeleteId] = useState(0);
|
||||
const router = useRouter();
|
||||
const session = useSession();
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -314,7 +314,7 @@ export const Components: Record<BookingFieldType, Component> = {
|
||||
}}
|
||||
checked={value?.value === option.value}
|
||||
/>
|
||||
<span className="dark:text-inverted ms-2 me-2 text-sm">{option.label ?? ""}</span>
|
||||
<span className="text-emphasis ms-2 me-2 text-sm">{option.label ?? ""}</span>
|
||||
</label>
|
||||
);
|
||||
})
|
||||
@@ -324,7 +324,7 @@ export const Components: Record<BookingFieldType, Component> = {
|
||||
<Label>
|
||||
{options[0].label}
|
||||
{!readOnly && optionsInputs[options[0].value]?.required ? (
|
||||
<span className="ml-1 mb-1 text-sm font-medium leading-none dark:text-white">*</span>
|
||||
<span className="text-default ml-1 mb-1 text-sm font-medium leading-none">*</span>
|
||||
) : null}
|
||||
</Label>
|
||||
</>
|
||||
|
||||
@@ -551,7 +551,7 @@ const WithLabel = ({
|
||||
<div className="mb-2 flex items-center">
|
||||
<Label className="!mb-0">
|
||||
<span>{field.label}</span>
|
||||
<span className="dark:text-inverted ml-1 -mb-1 text-sm font-medium leading-none">
|
||||
<span className="text-emphasis ml-1 -mb-1 text-sm font-medium leading-none">
|
||||
{!readOnly && field.required ? "*" : ""}
|
||||
</span>
|
||||
</Label>
|
||||
|
||||
@@ -57,7 +57,11 @@ export default function WebhookListItem(props: {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={classNames("flex w-full justify-between p-4", props.lastItem ? "" : "border-b")}>
|
||||
<div
|
||||
className={classNames(
|
||||
"flex w-full justify-between p-4",
|
||||
props.lastItem ? "" : "border-subtle border-b"
|
||||
)}>
|
||||
<div className="w-full truncate">
|
||||
<p className="text-emphasis truncate text-sm font-medium">{webhook.subscriberUrl}</p>
|
||||
<Tooltip content={t("triggers_when")}>
|
||||
|
||||
@@ -50,7 +50,7 @@ const WebhooksList = () => {
|
||||
<>
|
||||
{webhooks?.length ? (
|
||||
<>
|
||||
<div className="mt-6 mb-8 rounded-md border">
|
||||
<div className="border-subtle mt-6 mb-8 rounded-md border">
|
||||
{webhooks.map((webhook, index) => (
|
||||
<WebhookListItem
|
||||
key={webhook.id}
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { LOGO_ICON, LOGO } from "@calcom/lib/constants";
|
||||
|
||||
export default function Logo({ small, icon }: { small?: boolean; icon?: boolean }) {
|
||||
return (
|
||||
<h3 className="logo inline dark:invert">
|
||||
<h3 className="logo inline ">
|
||||
<strong>
|
||||
{icon ? (
|
||||
<img className="mx-auto w-9" alt="Cal" title="Cal" src={LOGO_ICON} />
|
||||
<img className="mx-auto w-9 dark:invert" alt="Cal" title="Cal" src={LOGO_ICON} />
|
||||
) : (
|
||||
<img className={small ? "h-4 w-auto" : "h-5 w-auto"} alt="Cal" title="Cal" src={LOGO} />
|
||||
<img
|
||||
className={classNames(small ? "h-4 w-auto" : "h-5 w-auto", "dark:invert")}
|
||||
alt="Cal"
|
||||
title="Cal"
|
||||
src={LOGO}
|
||||
/>
|
||||
)}
|
||||
</strong>
|
||||
</h3>
|
||||
|
||||
Reference in new issue
Block a user