Removes dynamic dimensions for V2 Skeletons in favor of classnames (#4263)
* WIP * Removes dynamic width in favor of classnames * Update useLocale.ts Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
1 parent
d7e523d365
commit
99f11dcc5c
8 files changed
+32
-47
No files matched your search
@@ -1,5 +1,3 @@
|
||||
import React from "react";
|
||||
|
||||
import { SkeletonAvatar, SkeletonContainer, SkeletonText } from "@calcom/ui";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
|
||||
@@ -7,10 +5,10 @@ function SkeletonLoader() {
|
||||
return (
|
||||
<SkeletonContainer>
|
||||
<div className="mb-4 flex items-center">
|
||||
<SkeletonAvatar width="8" height="8" />
|
||||
<SkeletonAvatar className="h-8 w-8" />
|
||||
<div className="space-y-1">
|
||||
<SkeletonText height="4" width="16" />
|
||||
<SkeletonText height="4" width="24" />
|
||||
<SkeletonText className="h-4 w-16" />
|
||||
<SkeletonText className="h-4 w-24" />
|
||||
</div>
|
||||
</div>
|
||||
<ul className="divide-y divide-neutral-200 border border-gray-200 bg-white sm:mx-0 sm:overflow-hidden">
|
||||
|
||||
@@ -80,9 +80,9 @@ const ConnectedCalendars = (props: IConnectCalendarsProps) => {
|
||||
{[0, 0, 0, 0].map((_item, index) => {
|
||||
return (
|
||||
<li className="flex w-full flex-row justify-center border-b-0 py-6" key={index}>
|
||||
<SkeletonAvatar width="8" height="8" className="mx-6 px-4" />
|
||||
<SkeletonText width="full" height="5" className="ml-1 mr-4 mt-3" />
|
||||
<SkeletonButton height="8" width="20" className="mr-6 rounded-md p-5" />
|
||||
<SkeletonAvatar className="mx-6 h-8 w-8 px-4" />
|
||||
<SkeletonText className="ml-1 mr-4 mt-3 h-5 w-full" />
|
||||
<SkeletonButton className="mr-6 h-8 w-20 rounded-md p-5" />
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -197,7 +197,7 @@ const Component = ({
|
||||
/>
|
||||
)
|
||||
) : (
|
||||
<SkeletonButton width="24" height="10" />
|
||||
<SkeletonButton className="h-10 w-24" />
|
||||
)}
|
||||
{price !== 0 && (
|
||||
<span className="block text-right">
|
||||
|
||||
@@ -59,14 +59,14 @@ export function TeamSettingsPage() {
|
||||
<SkeletonText width="16" height="6" />
|
||||
</div>
|
||||
}
|
||||
subtitle={<SkeletonText width="12" height="4" />}
|
||||
HeadingLeftIcon={<SkeletonAvatar width="12" height="12" className="mt-1" />}>
|
||||
subtitle={<SkeletonText className="h-4 w-12" />}
|
||||
HeadingLeftIcon={<SkeletonAvatar className="mt-1 h-12 w-12" />}>
|
||||
<>
|
||||
<div className="block sm:flex md:max-w-5xl">
|
||||
<div className="w-full ltr:mr-2 rtl:ml-2 sm:w-9/12">
|
||||
<div className="-mx-0 h-[531px] rounded-sm border border-neutral-200 bg-white px-4 sm:px-6" />
|
||||
<div className="mb-3 mt-7 flex items-center justify-between">
|
||||
<SkeletonText width="12" height="4" />
|
||||
<SkeletonText className="h-4 w-12" />
|
||||
</div>
|
||||
<div className="-mx-0 h-16 rounded-sm border border-neutral-200 bg-white px-4 sm:px-6" />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user