File tree 5 files changed +14
-4
lines changed
components/MessageBoxModal
5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
.Dialog__element {
2
- top : 50% ;
3
- left : 50% ;
4
- transform : translate (-50% , -50% );
5
2
z-index : 1000 ;
6
3
display : flex;
7
4
flex-direction : column;
22
19
--dialog-gap : 24px ;
23
20
}
24
21
22
+ .compatibility-warning {
23
+ top : 50% ;
24
+ left : 50% ;
25
+ transform : translate (-50% , -50% );
26
+ }
27
+
25
28
.Dialog__element [open ] {
26
29
opacity : 1 ;
27
30
box-shadow : 0px 0px 0px 100vmax var (--modal-backdrop );
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ interface MessageBoxModalProps {
21
21
checkboxLabel ?: string
22
22
checkboxValue ?: boolean
23
23
isModal ?: boolean
24
+ className ?: string
24
25
}
25
26
26
27
const MessageBoxModal : React . FC < MessageBoxModalProps > = function ( props ) {
@@ -71,7 +72,10 @@ const MessageBoxModal: React.FC<MessageBoxModalProps> = function (props) {
71
72
< Dialog
72
73
onClose = { props . onClose }
73
74
showCloseButton
74
- className = { classNames ( { errorDialog : props . type === 'ERROR' } ) }
75
+ className = { classNames (
76
+ { errorDialog : props . type === 'ERROR' } ,
77
+ props . className
78
+ ) }
75
79
isModal = { props . isModal }
76
80
>
77
81
< DialogHeader onClose = { props . onClose } > { props . title } </ DialogHeader >
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export default function DialogHandler() {
44
44
buttons = { dialogModalOptions . buttons ? dialogModalOptions . buttons : [ ] }
45
45
isModal = { dialogModalOptions . isModal }
46
46
onClose = { ( ) => handleClose ( ) }
47
+ className = { dialogModalOptions . className }
47
48
/>
48
49
) }
49
50
</ >
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ const launch = async ({
170
170
'This Windows game will run using a compatibility layer. You might encounter some issues or the game might not work at all.'
171
171
) ,
172
172
title : t ( 'infobox.warning' , 'Warning' ) ,
173
+ className : 'compatibility-warning' ,
173
174
buttons : [
174
175
{
175
176
text : t ( 'gamepage:box.dont-show-again' , "Don't show again" ) ,
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export type DialogModalOptions = {
74
74
type ?: DialogType
75
75
onClose ?: ( ) => void
76
76
isModal ?: boolean
77
+ className ?: string
77
78
}
78
79
79
80
export interface ExternalLinkDialogOptions {
You can’t perform that action at this time.
0 commit comments