misc frontend fixes (#8416)

* (temp) dark mode changes (#8415)

* fixes skeletons, some wrong buttons, spacing, settings
This commit is contained in:
Peer Richelsen authored and GitHub committed 2023-04-20 22:33:49 +00:00
1 parent 0c9b9bc296
commit 561d9f154b
17 files changed
+40 -30

No files matched your search

@@ -103,6 +103,7 @@ export const AddNewTeamMembersForm = ({
<hr className="border-subtle my-6" />
<Button
EndIcon={ArrowRight}
color="primary"
className="mt-6 w-full justify-center"
disabled={publishTeamMutation.isLoading}
onClick={() => {
@@ -118,7 +119,7 @@ export default AddNewTeamMembers;
const AddNewTeamMemberSkeleton = () => {
return (
<SkeletonContainer className="rounded-md border">
<SkeletonContainer className="border-subtle rounded-md border">
<div className="flex w-full justify-between p-4">
<div>
<p className="text-emphasis text-sm font-medium">
@@ -44,14 +44,16 @@ export const CheckedTeamSelect = ({
/>
{/* This class name conditional looks a bit odd but it allows a seemless transition when using autoanimate
- Slides down from the top instead of just teleporting in from nowhere*/}
<ul className={classNames("mt-3 rounded-md", value.length >= 1 && "border")} ref={animationRef}>
<ul
className={classNames("mt-3 rounded-md", value.length >= 1 && "border-subtle border")}
ref={animationRef}>
{value.map((option, index) => (
<li key={option.value} className={`flex py-2 px-3 ${index === value.length - 1 ? "" : "border-b"}`}>
<Avatar size="sm" imageSrc={option.avatar} alt={option.label} />
<p className="text-emphasis my-auto ml-3 text-sm">{option.label}</p>
<p className="text-emphasis ms-3 my-auto text-sm">{option.label}</p>
<X
onClick={() => props.onChange(value.filter((item) => item.value !== option.value))}
className="my-auto ml-auto"
className="my-auto ml-auto h-4 w-4"
/>
</li>
))}
@@ -255,7 +255,7 @@ export const Components: Record<BookingFieldType, Component> = {
}
setValue(newValue);
}}
className="dark:bg-darkgray-300 border-subtle border-default text-emphasis h-4 w-4 rounded focus:ring-black ltr:mr-2 rtl:ml-2"
className="dark:bg-darkgray-300 border-subtle text-emphasis h-4 w-4 rounded focus:ring-black ltr:mr-2 rtl:ml-2"
value={option.value}
checked={value.includes(option.value)}
/>
@@ -314,7 +314,7 @@ export const Components: Record<BookingFieldType, Component> = {
type="radio"
disabled={readOnly}
name={name}
className="dark:bg-darkgray-300 border-subtle border-default text-emphasis h-4 w-4 focus:ring-black ltr:mr-2 rtl:ml-2"
className="dark:bg-darkgray-300 border-subtle text-emphasis h-4 w-4 focus:ring-black ltr:mr-2 rtl:ml-2"
value={option.value}
onChange={(e) => {
setValue({
@@ -255,8 +255,12 @@ const SettingsSidebarContainer = ({
}),
])
}>
<div className="ltr:mr-3 rtl:ml-3">
{teamMenuState[index].teamMenuOpen ? <ChevronDown /> : <ChevronRight />}
<div className="me-3">
{teamMenuState[index].teamMenuOpen ? (
<ChevronDown className="h-4 w-4" />
) : (
<ChevronRight className="h-4 w-4" />
)}
</div>
<img
src={getPlaceholderAvatar(team.logo, team?.name as string)}
@@ -352,7 +356,7 @@ const MobileSettingsContainer = (props: { onSideContainerOpen?: () => void }) =>
<button
className="hover:bg-emphasis flex items-center space-x-2 rounded-md px-3 py-1 rtl:space-x-reverse"
onClick={() => router.back()}>
<ArrowLeft className="text-default" />
<ArrowLeft className="text-default h-4 w-4" />
<p className="text-emphasis font-semibold">{t("settings")}</p>
</button>
</div>
+1 -1
View File
@@ -44,7 +44,7 @@ export function UpgradeTip({
alt={title}
/>
</picture>
<div className="relative mt-4 px-8 sm:px-14">
<div className="relative my-4 px-8 sm:px-14">
<h1 className={classNames("font-cal text-3xl", dark && "text-inverted")}>{t(title)}</h1>
<p className={classNames("mt-4 mb-8 max-w-sm", dark ? "text-inverted" : "text-default")}>
{t(description)}