mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
fix(zoom): inital commit on possbile fix
This commit is contained in:
1 parent
7e9c1d0f35
commit
5da2d680c6
5 files changed
+22
-19
No files matched your search
@@ -58,3 +58,8 @@
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: #666;
|
||||
}
|
||||
|
||||
|
||||
.zoomProp {
|
||||
transform: scale(10);
|
||||
}
|
||||
+2
-2
@@ -323,8 +323,8 @@ function Phone() {
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={currentTheme()}>
|
||||
<div className='PhoneWrapper'>
|
||||
<div style={{ zoom: settings.zoom }}>
|
||||
<div className='PhoneWrapper' style={{ transform: `scale(${settings.zoom})` }}>
|
||||
<div>
|
||||
<div className='Phone'>
|
||||
<div
|
||||
className='PhoneFrame'
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
interface IProps {
|
||||
options?: any;
|
||||
label: string;
|
||||
value?: string | null;
|
||||
value?: string | number | null;
|
||||
onClick?: any;
|
||||
icon: JSX.Element;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"wallpaper": "minimal.png",
|
||||
"frame": "s10.png",
|
||||
"theme": "taso-dark",
|
||||
"zoom": "100%",
|
||||
"zoom": 1,
|
||||
"ringtone": "pixel",
|
||||
"ringtoneVol": 100
|
||||
},
|
||||
@@ -20,7 +20,7 @@
|
||||
"logLevel": 1
|
||||
},
|
||||
"frames": ["s10.png"],
|
||||
"zoomOptions": ["120%", "100%", "80%", "60%", "40%"],
|
||||
"zoomOptions": [1, 0.9, 0.8],
|
||||
"ringtones": ["marimba", "pixel"],
|
||||
"themes": {
|
||||
"default-dark": {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { AppIcon } from './AppIcon';
|
||||
import { Grid, makeStyles } from '@material-ui/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Grid, makeStyles, Tooltip } from '@material-ui/core';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { useKeyboard } from '../../os/keyboard/hooks/useKeyboard';
|
||||
|
||||
@@ -13,20 +14,20 @@ const useStyles = makeStyles((theme) => ({
|
||||
width: '20%',
|
||||
},
|
||||
tooltip: {
|
||||
bottom: -8,
|
||||
bottom: 0,
|
||||
fontSize: 12,
|
||||
},
|
||||
}));
|
||||
|
||||
export const GridMenu = ({ items, Component = AppIcon }) => {
|
||||
const { t } = useTranslation();
|
||||
const setKey = useKeyboard();
|
||||
const classes = useStyles();
|
||||
|
||||
useEffect(function registerKeyHandlers() {
|
||||
setKey('ArrowLeft', () => {
|
||||
console.log(':v');
|
||||
});
|
||||
// eslint-disable-next-line
|
||||
// eslint-disable-next-linep
|
||||
}, []);
|
||||
|
||||
return (
|
||||
@@ -35,15 +36,12 @@ export const GridMenu = ({ items, Component = AppIcon }) => {
|
||||
{items &&
|
||||
items.length &&
|
||||
items.map((item) => (
|
||||
// <Tooltip
|
||||
// title={item.id}
|
||||
// placement='top'
|
||||
// arrow
|
||||
// classes={{ tooltip: classes.tooltip }}
|
||||
// PopperProps={{
|
||||
// anchorEl={}
|
||||
// }}
|
||||
// >
|
||||
<Tooltip
|
||||
key={item.id}
|
||||
title={t(item.nameLocale)}
|
||||
placement="bottom"
|
||||
classes={{ tooltip: classes.tooltip }}
|
||||
>
|
||||
<Grid
|
||||
key={item.id}
|
||||
item
|
||||
@@ -53,7 +51,7 @@ export const GridMenu = ({ items, Component = AppIcon }) => {
|
||||
>
|
||||
<Component {...item} />
|
||||
</Grid>
|
||||
// </Tooltip>
|
||||
</Tooltip>
|
||||
))}
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
Reference in new issue
Block a user