mirror of
https://github.com/mue/mue.git
synced 2026-06-08 14:10:42 +02:00
style: fix issues
This commit is contained in:
@@ -29,7 +29,7 @@ export default class Marketplace extends React.PureComponent {
|
||||
version: '1.0.0',
|
||||
icon: ''
|
||||
}
|
||||
}
|
||||
};
|
||||
this.buttons = {
|
||||
uninstall: <button className='removeFromMue' onClick={() => this.manage('uninstall')}>Remove</button>,
|
||||
install: <button className='addToMue' onClick={() => this.manage('install')}>Add to Mue</button>
|
||||
|
||||
@@ -117,7 +117,6 @@ ul.sidebar {
|
||||
padding-left: 0;
|
||||
height: 100vh;
|
||||
background: var(--sidebar);
|
||||
left: 0;
|
||||
border-radius: 12px 0 0 12px;
|
||||
text-align: left;
|
||||
font-size: 24px;
|
||||
|
||||
@@ -37,7 +37,7 @@ export default class ColourSettings extends React.PureComponent {
|
||||
toast(this.language.toasts.reset);
|
||||
}
|
||||
|
||||
InitializeColorPickerState(gradientSettings) {
|
||||
initialiseColorPickerState(gradientSettings) {
|
||||
this.GradientPickerInitalState = {
|
||||
points: gradientSettings.gradient.map((g) => {
|
||||
const rgb = hexToRgb(g.colour);
|
||||
@@ -145,7 +145,7 @@ export default class ColourSettings extends React.PureComponent {
|
||||
let gradientInputs;
|
||||
if (gradientHasMoreThanOneColour) {
|
||||
if (this.GradientPickerInitalState === undefined) {
|
||||
this.InitializeColorPickerState(this.state.gradientSettings);
|
||||
this.initialiseColorPickerState(this.state.gradientSettings);
|
||||
}
|
||||
|
||||
gradientInputs = (
|
||||
|
||||
@@ -79,5 +79,5 @@ export default function Tab(props) {
|
||||
</li>
|
||||
{(divider === true) ? <hr/> : null}
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export default class Search extends React.PureComponent {
|
||||
|
||||
voiceSearch.onresult = (event) => {
|
||||
searchText.value = event.results[0][0].transcript;
|
||||
}
|
||||
};
|
||||
|
||||
voiceSearch.onend = () => {
|
||||
setTimeout(() => {
|
||||
@@ -46,7 +46,7 @@ export default class Search extends React.PureComponent {
|
||||
let microphone = null;
|
||||
|
||||
const setting = localStorage.getItem('searchEngine');
|
||||
const info = searchEngines.find(i => i.settingsName === setting);
|
||||
const info = searchEngines.find((i) => i.settingsName === setting);
|
||||
|
||||
if (info !== undefined) {
|
||||
url = info.url;
|
||||
|
||||
@@ -7,7 +7,7 @@ export default function rgbToHSv({ red, green, blue }) {
|
||||
|
||||
const v = Math.max(rabs, gabs, babs);
|
||||
const diff = v - Math.min(rabs, gabs, babs);
|
||||
const diffc = c => (v - c) / 6 / diff + 1 / 2;
|
||||
const diffc = (c) => (v - c) / 6 / diff + 1 / 2;
|
||||
|
||||
if (diff === 0) {
|
||||
h = 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ExperimentalInit from './experimental';
|
||||
import experimentalInit from './experimental';
|
||||
|
||||
const defaultSettings = require('../default_settings.json');
|
||||
const languages = require('../languages.json');
|
||||
@@ -114,7 +114,7 @@ export default class SettingsFunctions {
|
||||
}
|
||||
|
||||
if (localStorage.getItem('experimental') === 'true') {
|
||||
ExperimentalInit();
|
||||
experimentalInit();
|
||||
}
|
||||
|
||||
const widgetzoom = localStorage.getItem('widgetzoom');
|
||||
|
||||
Reference in New Issue
Block a user