File tree Expand file tree Collapse file tree 2 files changed +27
-25
lines changed Expand file tree Collapse file tree 2 files changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ import LinkForNewWindow from '../LinkToNewWindow';
50
50
import iCtrlQRCode from './iCtrlQRCode.svg' ;
51
51
import './index.css' ;
52
52
import ICtrlVoiceButton from '../iCtrlVoiceButton/iCtrlVoiceButton' ;
53
+ import GitHubButton from 'react-github-btn' ;
54
+ import { openInNewWindow } from '../../../actions/utils' ;
53
55
54
56
const AboutSection = ( props ) => (
55
57
< >
@@ -90,8 +92,29 @@ export default class About extends React.Component {
90
92
return < Dialog open = { true } fullWidth = { true } maxWidth = { 'md' } >
91
93
< DialogTitle >
92
94
< div style = { { display : 'flex' , alignItems : 'center' } } >
93
- < span > About iCtrl { version && `(v${ version } )` } </ span >
94
- < ICtrlVoiceButton />
95
+ < div style = { { flexGrow : 1 , display : 'flex' , alignItems : 'center' } } >
96
+ < span style = { {
97
+ marginLeft : '16px' ,
98
+ marginRight : '8px' ,
99
+ fontWeight : 'bold' ,
100
+ fontSize : '24px' ,
101
+ } } > About iCtrl { version && `(v${ version } )` } </ span >
102
+ < ICtrlVoiceButton />
103
+ </ div >
104
+ < div onClick = { ( ev ) => {
105
+ openInNewWindow (
106
+ 'https://github.com/junhaoliao/iCtrl' , ev ) ;
107
+ } } >
108
+ < GitHubButton
109
+ href = "https://github.com/junhaoliao/iCtrl"
110
+ data-color-scheme = "no-preference: light_high_contrast; light: light_high_contrast; dark: light_high_contrast;"
111
+ data-show-count = "true"
112
+ aria-label = "Star junhaoliao/iCtrl on GitHub"
113
+ data-size = { 'large' }
114
+ >
115
+ Star
116
+ </ GitHubButton >
117
+ </ div >
95
118
</ div >
96
119
</ DialogTitle >
97
120
< DialogContent style = { { maxHeight : '630px' } } >
Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ import axios from 'axios';
42
42
43
43
import logo from '../../../icons/logo.webp' ;
44
44
import ictrlLogo from '../../../icons/logo.webp' ;
45
- import { openInNewWindow } from '../../../actions/utils' ;
46
45
import About from '../../components/About' ;
47
- import GitHubButton from 'react-github-btn' ;
48
46
import ResetVNCDialog from '../../components/ResetVNCDialog' ;
49
47
import TrafficLights from '../../components/TrafficLights/TrafficLights' ;
50
48
import Session from './Session' ;
@@ -177,28 +175,10 @@ export default class Dashboard extends React.Component {
177
175
sx = { { flexGrow : 1 } } >
178
176
iCtrl Dashboard
179
177
</ Typography >
180
- < div
181
- className = { 'titlebar-buttons' }
182
- onClick = { ( ev ) => {
183
- openInNewWindow (
184
- 'https://github.com/junhaoliao/iCtrl' , ev ) ;
185
- } }
186
- style = { {
187
- marginTop : '5px' ,
188
- marginRight : '16px' ,
189
- overflowX : 'auto' ,
190
- overflowY : 'hidden' ,
191
- } } >
192
- < GitHubButton
193
- href = "https://github.com/junhaoliao/iCtrl"
194
- data-color-scheme = "no-preference: light_high_contrast; light: light_high_contrast; dark: light_high_contrast;"
195
- data-show-count = "true"
196
- aria-label = "Star junhaoliao/iCtrl on GitHub" > Star</ GitHubButton >
197
-
198
- </ div >
199
178
< Tooltip title = "About iCtrl"
200
179
className = { 'titlebar-buttons' } >
201
- < IconButton onClick = { this . handleAboutOpen }
180
+ < IconButton disabled = { loading_sessions }
181
+ onClick = { this . handleAboutOpen }
202
182
size = { 'large' } >
203
183
< InfoIcon style = { { color : 'white' } }
204
184
fontSize = "large" />
@@ -282,5 +262,4 @@ export default class Dashboard extends React.Component {
282
262
</ >
283
263
) ;
284
264
}
285
-
286
265
}
You can’t perform that action at this time.
0 commit comments