Fix hidden label breaking layout (#8867)

pull/8873/head
sean-brydon 2023-05-13 10:50:00 +01:00 committed by GitHub
parent 476119d627
commit c81f30b092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@ export type ChildrenEventType = {
hidden: boolean;
};
// TODO: This isnt just a select... rename this component in the future took me ages to find the component i was looking for
export const ChildrenEventTypeSelect = ({
options = [],
value = [],
@ -87,7 +88,11 @@ export const ChildrenEventTypeSelect = ({
</small>
</div>
<div className="flex flex-row items-center gap-2">
{children.hidden && <Badge variant="gray">{t("hidden")}</Badge>}
{children.hidden && (
<Badge variant="gray" className="hidden sm:block">
{t("hidden")}
</Badge>
)}
<Tooltip content={t("show_eventtype_on_profile")}>
<div className="self-center rounded-md p-2">
<Switch