fix: Retain fullscreen modal as default for those triggered outside of showModal

This commit is contained in:
Tom Moor
2024-02-03 15:06:54 -05:00
parent 21bb8d36ae
commit e38796d14b
3 changed files with 17 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ function Dialogs() {
<Modal
key={id}
isOpen={modal.isOpen}
fullscreen={modal.fullscreen}
fullscreen={modal.fullscreen ?? false}
onRequestClose={() => dialogs.closeModal(id)}
title={modal.title}
>

View File

@@ -31,7 +31,7 @@ type Props = {
const Modal: React.FC<Props> = ({
children,
isOpen,
fullscreen,
fullscreen = true,
title = "Untitled",
onRequestClose,
}: Props) => {

View File

@@ -236,21 +236,6 @@
"Editor": "Editor",
"Viewer": "Viewer",
"Admin": "Admin",
"We sent out your invites!": "We sent out your invites!",
"Those email addresses are already invited": "Those email addresses are already invited",
"Sorry, you can only send {{MAX_INVITES}} invites at a time": "Sorry, you can only send {{MAX_INVITES}} invites at a time",
"Share link copied": "Share link copied",
"Invited members will receive access to": "Invited members will receive access to",
"{{collectionCount}} collections": "{{collectionCount}} collections",
"Invite members or guests to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "Invite members or guests to join your workspace. They can sign in with {{signinMethods}} or use their email address.",
"Invite members to join your workspace. They will need to sign in with {{signinMethods}}.": "Invite members to join your workspace. They will need to sign in with {{signinMethods}}.",
"As an admin you can also <2>enable email sign-in</2>.": "As an admin you can also <2>enable email sign-in</2>.",
"Want a link to share directly with your team?": "Want a link to share directly with your team?",
"Email": "Email",
"Remove invite": "Remove invite",
"Add another": "Add another",
"Inviting": "Inviting",
"Send Invites": "Send Invites",
"{{appName}} is available in your language {{optionLabel}}, would you like to change?": "{{appName}} is available in your language {{optionLabel}}, would you like to change?",
"Change Language": "Change Language",
"Dismiss": "Dismiss",
@@ -455,6 +440,7 @@
"New template": "New template",
"Revision options": "Revision options",
"Share link revoked": "Share link revoked",
"Share link copied": "Share link copied",
"Share options": "Share options",
"Go to document": "Go to document",
"Revoke link": "Revoke link",
@@ -661,6 +647,20 @@
"Weird, this shouldnt ever be empty": "Weird, this shouldnt ever be empty",
"You havent created any documents yet": "You havent created any documents yet",
"Documents youve recently viewed will be here for easy access": "Documents youve recently viewed will be here for easy access",
"We sent out your invites!": "We sent out your invites!",
"Those email addresses are already invited": "Those email addresses are already invited",
"Sorry, you can only send {{MAX_INVITES}} invites at a time": "Sorry, you can only send {{MAX_INVITES}} invites at a time",
"Invited members will receive access to": "Invited members will receive access to",
"{{collectionCount}} collections": "{{collectionCount}} collections",
"Invite members or guests to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "Invite members or guests to join your workspace. They can sign in with {{signinMethods}} or use their email address.",
"Invite members to join your workspace. They will need to sign in with {{signinMethods}}.": "Invite members to join your workspace. They will need to sign in with {{signinMethods}}.",
"As an admin you can also <2>enable email sign-in</2>.": "As an admin you can also <2>enable email sign-in</2>.",
"Want a link to share directly with your team?": "Want a link to share directly with your team?",
"Email": "Email",
"Remove invite": "Remove invite",
"Add another": "Add another",
"Inviting": "Inviting",
"Send Invites": "Send Invites",
"Open command menu": "Open command menu",
"Edit current document": "Edit current document",
"Move current document": "Move current document",