diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-12-08 08:12:45 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-12-08 08:12:45 -0600 |
| commit | 75b8075f480be97209435ad454d9c23d03d0b6c9 (patch) | |
| tree | 7da287e6ece3104bdf0dcd17757c584a3ad6c46a /src | |
| parent | ffc34a22cdb64665956f86aa44881b111128bc37 (diff) | |
| download | slskd-75b8075f480be97209435ad454d9c23d03d0b6c9.tar.gz | |
use ShrinkableButton
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/System/Info.js | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/web/src/components/System/Info.js b/src/web/src/components/System/Info.js index c515fc75..655ac431 100644 --- a/src/web/src/components/System/Info.js +++ b/src/web/src/components/System/Info.js @@ -3,8 +3,9 @@ import YAML from 'yaml'; import { restart, shutdown, getVersion } from '../../lib/application'; -import { Button, Icon, Modal, Header } from 'semantic-ui-react'; +import { Modal, Header } from 'semantic-ui-react'; import CodeEditor from '../Shared/CodeEditor'; +import ShrinkableButton from '../Shared/ShrinkableButton'; const Info = ({ state }) => { const stateAsYaml = YAML.stringify(state, { simpleKeys: true, sortMapEntries: true }) @@ -20,11 +21,24 @@ const Info = ({ state }) => { </div> <div className='footer-buttons'> <div style={{float: 'left'}}> - <Button primary onClick={() => getVersion({ forceCheck: true })}><Icon name='refresh'/>Check for Updates</Button> + <ShrinkableButton + iconName='refresh' + mediaQuery='(max-width: 516px)' + primary + onClick={() => getVersion({ forceCheck: true })} + > + Check for Updates + </ShrinkableButton> </div> <Modal trigger={ - <Button negative><Icon name='shutdown'/>Shut Down</Button> + <ShrinkableButton + iconName='shutdown' + mediaQuery='(max-width: 516px)' + negative + > + Shut Down + </ShrinkableButton> } centered size='mini' @@ -34,7 +48,13 @@ const Info = ({ state }) => { /> <Modal trigger={ - <Button negative><Icon name='redo'/>Restart</Button> + <ShrinkableButton + iconName='redo' + mediaQuery='(max-width: 516px)' + negative + > + Restart + </ShrinkableButton> } centered size='mini' |
