mirror of
https://github.com/mue/mue.git
synced 2026-07-09 21:45:26 +02:00
fix: font settings and quote widget
This commit is contained in:
@@ -126,7 +126,6 @@ ul.sidebar {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
font-size: 35px;
|
||||
|
||||
@@ -33,7 +33,6 @@ ul {
|
||||
border-radius: 12px;
|
||||
outline: none;
|
||||
background: var(--sidebar);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 0 100px rgba(0, 0, 0, 0.3);
|
||||
|
||||
&::-webkit-slider-thumb {
|
||||
|
||||
@@ -29,7 +29,7 @@ export default class Radio extends React.PureComponent {
|
||||
<FormControl component='fieldset'>
|
||||
<FormLabel className='radio-title' component='legend'>{this.props.title}</FormLabel>
|
||||
<RadioGroup aria-label={this.props.name} name={this.props.name} onChange={this.handleChange} value={this.state.value}>
|
||||
{this.props.options.map(option => (
|
||||
{this.props.options.map((option) => (
|
||||
<FormControlLabel value={option.value} control={<RadioUI/>} label={option.name} key={option.name} />
|
||||
))}
|
||||
</RadioGroup>
|
||||
|
||||
@@ -12,7 +12,7 @@ export default class Text extends React.PureComponent {
|
||||
}
|
||||
|
||||
handleChange = (e) => {
|
||||
const { value } = e.target;
|
||||
let { value } = e.target;
|
||||
|
||||
// Alex wanted font to work with montserrat and Montserrat, so I made it work
|
||||
if (this.props.upperCaseFirst === true) {
|
||||
|
||||
@@ -17,7 +17,7 @@ export default class About extends React.PureComponent {
|
||||
photographers: [],
|
||||
update: window.language.modals.main.settings.sections.about.version.checking_update,
|
||||
loading: window.language.modals.main.loading
|
||||
}
|
||||
};
|
||||
this.language = window.language.modals.main.settings.sections.about;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ export default class BackgroundSettings extends React.PureComponent {
|
||||
'name': 'Unsplash',
|
||||
'value': 'unsplash'
|
||||
}
|
||||
]
|
||||
];
|
||||
|
||||
const APISettings = (
|
||||
<>
|
||||
|
||||
@@ -19,7 +19,7 @@ export default class Widgets extends React.PureComponent {
|
||||
quote: this.enabled('quote') ? <Quote/> : null,
|
||||
date: this.enabled('date') ? <Date/> : null,
|
||||
quicklinks: this.enabled('quicklinksenabled') ? <QuickLinks/> : null
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
enabled(key) {
|
||||
@@ -75,7 +75,7 @@ export default class Widgets extends React.PureComponent {
|
||||
const order = JSON.parse(localStorage.getItem('order'));
|
||||
|
||||
if (order) {
|
||||
order.forEach(element => {
|
||||
order.forEach((element) => {
|
||||
elements.push(<React.Fragment key={element}>{this.widgets[element]}</React.Fragment>);
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -36,6 +36,6 @@ export default class Favourite extends React.PureComponent {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <Tooltip title='Favourite' placement='top'>{this.state.favourited}</Tooltip>
|
||||
return <Tooltip title='Favourite' placement='top'>{this.state.favourited}</Tooltip>;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,8 +51,10 @@ export default class View extends React.PureComponent {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <Tooltip title='View' placement='top'>
|
||||
<FullscreenIcon onClick={() => this.viewStuff()} className='topicons' />
|
||||
</Tooltip>
|
||||
return (
|
||||
<Tooltip title='View' placement='top'>
|
||||
<FullscreenIcon onClick={() => this.viewStuff()} className='topicons' />
|
||||
</Tooltip>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const toDataURL = async (url) => {
|
||||
const response = await fetch(url);
|
||||
const blob = await response.blob();
|
||||
return URL.createObjectURL(blob);
|
||||
}
|
||||
};
|
||||
|
||||
const downloadImage = async (info) => {
|
||||
const link = document.createElement('a');
|
||||
@@ -21,7 +21,7 @@ const downloadImage = async (info) => {
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
}
|
||||
};
|
||||
|
||||
export default function PhotoInformation(props) {
|
||||
const language = window.language.widgets.background;
|
||||
|
||||
@@ -12,7 +12,7 @@ export default class Notes extends React.PureComponent {
|
||||
this.state = {
|
||||
notes: localStorage.getItem('notes') || ''
|
||||
};
|
||||
this.language = window.language.widgets.navbar.notes
|
||||
this.language = window.language.widgets.navbar.notes;
|
||||
}
|
||||
|
||||
setNotes = (e) => {
|
||||
|
||||
@@ -101,7 +101,7 @@ export default class Quote extends React.PureComponent {
|
||||
|
||||
let authorlink = `https://${this.languagecode.split('_')[0]}.wikipedia.org/wiki/${data.author.split(' ').join('_')}`;
|
||||
if (localStorage.getItem('authorLink') === 'false') {
|
||||
authorLink = null;
|
||||
authorlink = null;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
|
||||
@@ -50,7 +50,9 @@ export default class Search extends React.PureComponent {
|
||||
|
||||
if (info !== undefined) {
|
||||
url = info.url;
|
||||
if (info.query) query = info.query;
|
||||
if (info.query) {
|
||||
query = info.query;
|
||||
}
|
||||
}
|
||||
|
||||
if (setting === 'custom') {
|
||||
|
||||
@@ -93,7 +93,7 @@ export default class Clock extends React.PureComponent {
|
||||
|
||||
const checkValue = (setting) => {
|
||||
return (localStorage.getItem(setting) === 'true');
|
||||
}
|
||||
};
|
||||
|
||||
if (localStorage.getItem('timeType') === 'analogue') {
|
||||
clockHTML = (
|
||||
|
||||
Reference in New Issue
Block a user