Prevent Invite and DevTools dialogs from being cut off (#8646)

* fix: replace fixed height based styling with flex for invite and dev dialogs
* feat: create flex wrapper class for dialogs
* feat: make invite dialogs use flex layout
* feat: make devtools dialogs use flex layout
This commit is contained in:
Janne Mareike Koschinski 2022-06-02 15:59:40 +02:00 committed by GitHub
parent 4b957b57af
commit a74b9a7083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 33 deletions

View file

@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import classnames from "classnames";
import defaultDispatcher from "../dispatcher/dispatcher";
import { ActionPayload } from "../dispatcher/payloads";
import Modal from "../Modal";
@ -89,9 +91,10 @@ export class DialogOpener {
kind: payload.kind,
call: payload.call,
roomId: payload.roomId,
}, payload.className, false, true).finished.then((results) => {
payload.onFinishedCallback?.(results);
});
}, classnames("mx_InviteDialog_flexWrapper", payload.className), false, true).finished
.then((results) => {
payload.onFinishedCallback?.(results);
});
break;
case Action.OpenAddToExistingSpaceDialog: {
const space = payload.space;