mirror of
https://github.com/mue/mue.git
synced 2026-07-26 10:11:15 +02:00
feat: WIP quick links widget, better maximise/favourite widget, fixed favourite button, finish download button etc
Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
import Tooltip from '@material-ui/core/Tooltip';
|
||||
|
||||
import FullscreenIcon from '@material-ui/icons/Fullscreen';
|
||||
|
||||
export default class View extends React.PureComponent {
|
||||
@@ -19,7 +21,7 @@ export default class View extends React.PureComponent {
|
||||
|
||||
viewStuff() {
|
||||
// elements to hide
|
||||
const elements = ['.searchBar', '.navbar-container', '.clock', '.greeting', '.quotediv', 'time'];
|
||||
const elements = ['.searchBar', '.clock', '.greeting', '.quotediv', 'time'];
|
||||
|
||||
elements.forEach((element) => {
|
||||
try {
|
||||
@@ -49,8 +51,8 @@ export default class View extends React.PureComponent {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <div className='view'>
|
||||
<FullscreenIcon onClick={() => this.viewStuff()} />
|
||||
</div>
|
||||
return <Tooltip title='View' placement='top'>
|
||||
<FullscreenIcon onClick={() => this.viewStuff()} className='topicons' />
|
||||
</Tooltip>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user