mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 05:17:19 +08:00
Fix dialog not rendering fully in firefox
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
.dialog {
|
||||
position: fixed;
|
||||
}
|
||||
@@ -2,6 +2,7 @@ import React, {Component} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import dialogPolyfill from 'dialog-polyfill';
|
||||
import 'dialog-polyfill/dialog-polyfill.css';
|
||||
import styles from './Dialog.css';
|
||||
|
||||
export default class Dialog extends Component {
|
||||
static propTypes = {
|
||||
@@ -54,7 +55,7 @@ export default class Dialog extends Component {
|
||||
return (
|
||||
<dialog
|
||||
ref={(el) => { this.dialog = el; }}
|
||||
className={`mdl-dialog ${className}`}
|
||||
className={`mdl-dialog ${className} ${styles.dialog}`}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user