fix: welcome text, remove old buggy global widget zoom

This commit is contained in:
David Ralph 2021-08-23 15:52:05 +01:00
parent 30768053eb
commit daee291aa9
9 changed files with 6 additions and 17 deletions

View File

@ -4,7 +4,7 @@
"default_locale": "en",
"name": "__MSG_name__",
"description": "__MSG_description__",
"version": "5.3.2",
"version": "5.3.3",
"homepage_url": "https://muetab.com",
"browser_action": {
"default_icon": "icons/128x128.png"

View File

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Mue",
"description": "Fast, open and free-to-use new tab page for modern browsers.",
"version": "5.3.2",
"version": "5.3.3",
"homepage_url": "https://muetab.com",
"browser_action": {
"default_icon": "icons/128x128.png"

View File

@ -9,7 +9,7 @@
"homepage": "https://muetab.com",
"bugs": "https://github.com/mue/mue/issues/new?assignees=&labels=bug&template=bug-report.md&title=%5BBUG%5D",
"license": "BSD-3-Clause",
"version": "5.3.2",
"version": "5.3.3",
"dependencies": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",

View File

@ -55,10 +55,6 @@ export default function AppearanceSettings() {
</Dropdown>
<h3>{appearance.accessibility.title}</h3>
{/* not supported on firefox */}
{(navigator.userAgent.includes('Chrome') && typeof InstallTrigger === 'undefined') ?
<Slider title={appearance.accessibility.widget_zoom} name='widgetzoom' default='100' step='10' min='50' max='200' display='%' category='other'/>
: null}
<Slider title={appearance.accessibility.toast_duration} name='toastDisplayTime' default='2500' step='100' min='500' max='5000' toast={true} display={' ' + appearance.accessibility.milliseconds} />
</>
);

View File

@ -74,6 +74,7 @@ export default class SearchSettings extends PureComponent {
<>
<h2>{search.title}</h2>
<Switch name='searchBar' text={language.enabled} category='widgets' />
{/* not supported on firefox */}
{(navigator.userAgent.includes('Chrome') && typeof InstallTrigger === 'undefined') ?
<Checkbox name='voiceSearch' text={search.voice_search} category='search'/>
: null}

View File

@ -126,7 +126,7 @@ export default class WelcomeSections extends PureComponent {
</>
);
const { appearance, advanced, background, quicklinks, stats } = window.language.modals.main.settings.sections;
const { appearance, advanced, background, quicklinks } = window.language.modals.main.settings.sections;
const languageSettings = window.language.modals.main.settings.sections.language;
const theme = (
@ -178,8 +178,6 @@ export default class WelcomeSections extends PureComponent {
<Checkbox name='quicklinksddgProxy' text={background.ddg_image_proxy + ' (' + quicklinks.title + ')'}/>
<Checkbox name='ddgProxy' text={background.ddg_image_proxy + ' (' + background.title + ')'}/>
<p>{language.sections.privacy.ddg_proxy_description}</p>
<Checkbox name='stats' text={stats.usage}/>
<p>{language.sections.privacy.stats_description}</p>
<h3 className='quicktip'>{language.sections.privacy.links.title}</h3>
<a className='privacy' href={window.constants.PRIVACY_URL} target='_blank' rel='noopener noreferrer'>{language.sections.privacy.links.privacy_policy}</a>
<br/><br/>

View File

@ -31,4 +31,4 @@ export const OFFLINE_IMAGES = 20;
// Version
export const BETA_VERSION = false;
export const VERSION = '5.3.2';
export const VERSION = '5.3.3';

View File

@ -107,10 +107,6 @@
"name": "shortFormat",
"value": "dots"
},
{
"name": "widgetzoom",
"value": 100
},
{
"name": "toastDisplayTime",
"value": 2500

View File

@ -28,8 +28,6 @@ export function setDefaultSettings(reset) {
}
export function loadSettings(hotreload) {
document.getElementById('widgets').style.zoom = localStorage.getItem('widgetzoom') + '%';
switch (localStorage.getItem('theme')) {
case 'dark':
document.body.classList.add('dark');