mirror of
https://github.com/mue/mue.git
synced 2026-07-09 13:35:35 +02:00
fix: modal and notes style fixes
This commit is contained in:
@@ -42,16 +42,16 @@ ul {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 12px;
|
||||
background: #ff4757;
|
||||
background: var(--modal-text);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&::-moz-range-thumb {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 12px;
|
||||
border: 0;
|
||||
background: #ff4757;
|
||||
background: var(--modal-text);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export default class Text extends React.PureComponent {
|
||||
<p>{this.props.title} <span className='modalLink' onClick={this.resetItem}>{this.language.buttons.reset}</span></p>
|
||||
{(this.props.textarea === true) ?
|
||||
<textarea className='settingsTextarea' value={this.state.value} onChange={this.handleChange}/>
|
||||
:<input type='text' value={this.state.value} onChange={this.handleChange}/>
|
||||
: <input type='text' value={this.state.value} onChange={this.handleChange}/>
|
||||
}
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -30,7 +30,7 @@ export default class Tabs extends React.PureComponent {
|
||||
}
|
||||
|
||||
return (
|
||||
<span className='tabs'>
|
||||
<>
|
||||
<ul className={className}>
|
||||
{optionsText}
|
||||
{this.props.children.map((tab) => {
|
||||
@@ -48,12 +48,15 @@ export default class Tabs extends React.PureComponent {
|
||||
<div className={tabClass}>
|
||||
<ErrorBoundary>
|
||||
{this.props.children.map((child) => {
|
||||
if (child.props.label !== this.state.currentTab) return undefined;
|
||||
if (child.props.label !== this.state.currentTab) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return child.props.children;
|
||||
})}
|
||||
</ErrorBoundary>
|
||||
</div>
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,10 @@ export default class Notes extends React.PureComponent {
|
||||
if (localStorage.getItem('notesPinned') === 'true') {
|
||||
document.getElementById('noteContainer').classList.toggle('visibilityshow');
|
||||
}
|
||||
|
||||
if (localStorage.getItem('refresh') === 'false') {
|
||||
document.getElementById('noteContainer').style.marginLeft = '-200px';
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
@@ -42,12 +42,12 @@ textarea {
|
||||
|
||||
.topbarnotes {
|
||||
svg {
|
||||
font-size: 48px;
|
||||
font-size: 46px;
|
||||
padding: 9px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 48px;
|
||||
font-size: 46px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user