fix: replace ltr and rtl with new ms and me (#8138)

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-04-09 11:13:57 +02:00
1 parent d416386d7b
commit e1096620e6
31 files changed
+165 -1729

No files matched your search

@@ -123,7 +123,7 @@ export const CreateANewTeamForm = () => {
render={({ field: { value } }) => (
<div className="flex items-center">
<Avatar alt="" imageSrc={value || null} gravatarFallbackMd5="newTeam" size="lg" />
<div className="ltr:ml-4 rtl:mr-4">
<div className="ms-4">
<ImageUploader
target="avatar"
id="avatar-upload"
@@ -99,7 +99,7 @@ export default function MemberChangeRoleModal(props: {
</p>
)}
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
<Button type="submit" color="primary" className="ltr:ml-2 ltr:mr-2 rtl:ml-2">
<Button type="submit" color="primary" className="ms-2 me-2">
{t("save")}
</Button>
<Button type="button" color="secondary" onClick={props.onExit}>
@@ -151,7 +151,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
<Button
type="submit"
color="primary"
className="ltr:ml-2 ltr:mr-2 rtl:ml-2"
className="ms-2 me-2"
data-testid="invite-new-member-button">
{t("invite")}
</Button>
@@ -108,7 +108,7 @@ export default function MemberListItem(props: Props) {
className="h-10 w-10 rounded-full"
/>
<div className="inline-block ltr:ml-3 rtl:mr-3">
<div className="ms-3 inline-block">
<div className="mb-1 flex">
<span className="text-default mr-1 text-sm font-bold leading-4">{name}</span>
@@ -121,11 +121,11 @@ export default function MemberListItem(props: Props) {
</span>
{bookingLink && (
<>
<span className="mx-2 block text-default">•</span>
<span className="text-default mx-2 block">•</span>
<a
target="_blank"
href={`${WEBAPP_URL}/${props.member.username}`}
className="block text-sm text-default">
className="text-default block text-sm">
{bookingLink}
</a>
</>
@@ -38,7 +38,7 @@ export default function TeamAvailabilityModal(props: Props) {
alt={props.member?.name || ""}
className="h-14 w-14 rounded-full"
/>
<div className="inline-block pt-1 ltr:ml-3 rtl:mr-3">
<div className="ms-3 inline-block pt-1">
<span className="text-default text-lg font-bold">{props.member?.name}</span>
<span className="text-muted -mt-1 block text-sm">{props.member?.email}</span>
</div>
@@ -34,7 +34,7 @@ export default function TeamAvailabilityScreen(props: Props) {
if (!member) return <></>;
return (
<div key={member.id} style={style} className="flex border-r border-subtle pl-4 ">
<div key={member.id} style={style} className="border-subtle flex border-r pl-4 ">
<TeamAvailabilityTimes
teamId={props.team?.id as number}
memberId={member.id}
@@ -49,7 +49,7 @@ export default function TeamAvailabilityScreen(props: Props) {
alt={member?.name || ""}
className="min-w-10 min-h-10 mt-1 h-10 w-10 rounded-full"
/>
<div className="inline-block overflow-hidden pt-1 ltr:ml-3 rtl:mr-3">
<div className="ms-3 inline-block overflow-hidden pt-1">
<span className="text-default truncate text-lg font-bold">{member?.name}</span>
<span className="text-muted -mt-1 block truncate text-sm">{member?.email}</span>
</div>
@@ -62,7 +62,7 @@ export default function TeamAvailabilityScreen(props: Props) {
return (
<div className="bg-default flex flex-1 flex-col rounded-sm border border-neutral-200">
<div className="flex w-full space-x-5 border-b border-subtle p-4 rtl:space-x-reverse">
<div className="border-subtle flex w-full space-x-5 border-b p-4 rtl:space-x-reverse">
<div className="flex flex-col">
<span className="text-default text-sm font-medium">Date</span>
<DatePicker
@@ -67,7 +67,7 @@ export default function TeamInviteListItem(props: Props) {
alt="Team Logo"
className=""
/>
<div className="inline-block ltr:ml-3 rtl:mr-3">
<div className="ms-3 inline-block">
<span className="text-emphasis text-sm font-semibold">{team.name}</span>
<span className="text-default block text-sm leading-5">
{t("invited_by_team", { teamName: team.name, role: t(team.role.toLocaleLowerCase()) })}
@@ -89,7 +89,7 @@ export default function TeamInviteListItem(props: Props) {
<div className="hidden sm:flex">
<Button
type="button"
className="mr-3 border-empthasis"
className="border-empthasis mr-3"
variant="icon"
color="secondary"
onClick={declineInvite}
@@ -105,7 +105,7 @@ export default function TeamListItem(props: Props) {
alt="Team Logo"
className="inline-flex justify-center"
/>
<div className="inline-block ltr:ml-3 rtl:mr-3">
<div className="ms-3 inline-block">
<span className="text-default text-sm font-bold">{team.name}</span>
<span className="text-muted block text-xs">
{team.slug ? `${process.env.NEXT_PUBLIC_WEBSITE_URL}/team/${team.slug}` : "Unpublished team"}
@@ -154,7 +154,7 @@ export default function TeamListItem(props: Props) {
type="button"
color="secondary"
StartIcon={FiCheck}
className="ltr:ml-2 ltr:mr-2 rtl:ml-2"
className="ms-2 me-2"
onClick={acceptInvite}>
{t("accept")}
</Button>
@@ -34,7 +34,7 @@ export default function TeamAvailabilityScreen(props: Props) {
if (!member) return <></>;
return (
<div key={member.id} style={style} className="flex border-r border-subtle pl-4 ">
<div key={member.id} style={style} className="border-subtle flex border-r pl-4 ">
<TeamAvailabilityTimes
teamId={props.team?.id as number}
memberId={member.id}
@@ -49,7 +49,7 @@ export default function TeamAvailabilityScreen(props: Props) {
alt={member?.name || ""}
className="min-w-10 min-h-10 mt-1 h-10 w-10 rounded-full"
/>
<div className="inline-block overflow-hidden pt-1 ltr:ml-3 rtl:mr-3">
<div className="ms-3 inline-block overflow-hidden pt-1">
<span className="text-default truncate text-lg font-bold">{member?.name}</span>
<span className="text-muted -mt-1 block truncate text-sm">{member?.email}</span>
</div>
@@ -62,7 +62,7 @@ export default function TeamAvailabilityScreen(props: Props) {
return (
<div className="bg-default flex flex-1 flex-col rounded-sm border border-neutral-200">
<div className="flex w-full space-x-5 border-b border-subtle p-4 rtl:space-x-reverse">
<div className="border-subtle flex w-full space-x-5 border-b p-4 rtl:space-x-reverse">
<div className="flex flex-col">
<span className="text-default text-sm font-medium">Date</span>
<DatePicker
@@ -165,7 +165,7 @@ const ProfileView = () => {
render={({ field: { value } }) => (
<>
<Avatar alt="" imageSrc={getPlaceholderAvatar(value, team?.name as string)} size="lg" />
<div className="ltr:ml-4 rtl:mr-4">
<div className="ms-4">
<ImageUploader
target="avatar"
id="avatar-upload"
@@ -249,9 +249,7 @@ export const Components: Record<BookingFieldType, Component> = {
value={option.value}
checked={value.includes(option.value)}
/>
<span className="dark:text-inverted text-sm ltr:ml-2 ltr:mr-2 rtl:ml-2">
{option.label ?? ""}
</span>
<span className="dark:text-inverted ms-2 me-2 text-sm">{option.label ?? ""}</span>
</label>
);
})}
@@ -316,9 +314,7 @@ export const Components: Record<BookingFieldType, Component> = {
}}
checked={value?.value === option.value}
/>
<span className="dark:text-inverted text-sm ltr:ml-2 ltr:mr-2 rtl:ml-2">
{option.label ?? ""}
</span>
<span className="dark:text-inverted ms-2 me-2 text-sm">{option.label ?? ""}</span>
</label>
);
})
@@ -264,7 +264,7 @@ const SettingsSidebarContainer = ({
/>
<p className="w-1/2 truncate">{team.name}</p>
{!team.accepted && (
<Badge className="ltr:ml-3 rtl:mr-3" variant="orange">
<Badge className="ms-3" variant="orange">
Inv.
</Badge>
)}
@@ -448,7 +448,7 @@ function ShellHeader() {
<div className="bg-emphasis mb-1 h-6 w-32 animate-pulse rounded-md" />
)}
</div>
<div className="flex-shrink-0 ltr:ml-auto rtl:mr-auto">{meta.CTA}</div>
<div className="ms-auto flex-shrink-0">{meta.CTA}</div>
</div>
</header>
);