This repository was archived by the owner on Dec 11, 2019. It is now read-only.
File tree 4 files changed +21
-6
lines changed
4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,9 @@ class CertErrorPage extends React.Component {
138
138
< div className = 'buttons' >
139
139
< Button l10nId = 'certErrorSafety' className = 'actionButton' onClick = { this . onSafety . bind ( this ) } />
140
140
{ this . state . url ? ( this . state . advanced
141
- ? ( < div >
142
- < Button l10nId = 'certErrorButtonText' className = 'subtleButton' onClick = { this . onAccept . bind ( this ) } />
143
- < Button l10nId = 'certErrorShowCertificate' className = 'subtleButton' onClick = { this . onDetail . bind ( this ) } />
144
- </ div > )
141
+ ? ( < Button l10nId = 'certErrorButtonText' className = 'subtleButton' onClick = { this . onAccept . bind ( this ) } /> ) : null ) : null }
142
+ { this . state . url ? ( this . state . advanced
143
+ ? ( < Button l10nId = 'certErrorShowCertificate' className = 'subtleButton' onClick = { this . onDetail . bind ( this ) } /> )
145
144
: < Button l10nId = 'certErrorAdvanced' className = 'subtleButton' onClick = { this . onAdvanced . bind ( this ) } /> ) : null }
146
145
</ div >
147
146
</ div >
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class NoScriptInfo extends ImmutableComponent {
64
64
site : this . props . frameProps . get ( 'location' ) || 'this page'
65
65
}
66
66
return < Dialog onHide = { this . props . onHide } className = 'noScriptInfo' isClickDismiss >
67
- < div >
67
+ < div className = 'dialogInner' >
68
68
< div className = 'truncate' data-l10n-args = { JSON . stringify ( l10nArgs ) }
69
69
data-l10n-id = { this . numberBlocked === 1 ? 'scriptBlocked' : 'scriptsBlocked' } />
70
70
{ this . buttons }
Original file line number Diff line number Diff line change 20
20
padding-bottom : 1rem ;
21
21
}
22
22
23
+ .buttons {
24
+ display : flex ;
25
+ flex-flow : row wrap ;
26
+ position : relative ;
27
+ right : .2em ; // cancel margin: .2em to align .buttons and .certErrorText
28
+
29
+ > .browserButton {
30
+ margin : .2em ;
31
+ font-size : 14px ;
32
+ }
33
+ }
34
+
23
35
.errorLogo {
24
36
margin-bottom : 2rem ;
25
37
Original file line number Diff line number Diff line change @@ -515,14 +515,18 @@ select {
515
515
}
516
516
517
517
.noScriptInfo {
518
- > div {
518
+ .dialogInner {
519
519
.flyoutDialog ;
520
520
right : 20px ;
521
521
width : auto ;
522
522
max-width : 350px ;
523
523
text-align : center ;
524
524
font-size : 15px ;
525
525
cursor : default ;
526
+
527
+ .truncate {
528
+ margin-bottom : 5px ;
529
+ }
526
530
}
527
531
}
528
532
You can’t perform that action at this time.
0 commit comments