fixed dialog button on mobile (#1995)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Peer RichelsenandPeer Richelsen authored and GitHub committed 2022-02-27 21:03:56 +00:00
1 parent ca29940ea5
commit 981fb9c5be
3 files changed
+4 -4

No files matched your search

@@ -60,7 +60,7 @@ export default function ConfirmationDialogContent(props: PropsWithChildren<Confi
</DialogPrimitive.Description>
</div>
</div>
<div className="mt-5 gap-x-2 sm:mt-8 sm:flex sm:flex-row-reverse">
<div className="mt-5 flex flex-row-reverse gap-x-2 sm:mt-8">
<DialogClose onClick={onConfirm} asChild>
{confirmBtn || <Button color="primary">{confirmBtnText}</Button>}
</DialogClose>
@@ -120,11 +120,11 @@ const CustomInputTypeForm: FC<Props> = (props) => {
value={selectedCustomInput?.id || -1}
{...register("id", { valueAsNumber: true })}
/>
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
<Button type="submit">{t("save")}</Button>
<div className="mt-5 flex space-x-2 sm:mt-4">
<Button onClick={onCancel} type="button" color="secondary" className="ltr:mr-2">
{t("cancel")}
</Button>
<Button type="submit">{t("save")}</Button>
</div>
</form>
);
+1 -1
View File
@@ -76,7 +76,7 @@ export default function TeamCreate(props: Props) {
/>
</div>
{errorMessage && <Alert severity="error" title={errorMessage} />}
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
<div className="mt-5 flex flex-row-reverse sm:mt-4">
<button type="submit" className="btn btn-primary">
{t("create_team")}
</button>