mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
styling(misc): Misc. Tweaks and gen styling changes
General Phone: - Removed unecessary border that was causing an issue at 80% zoom - Added tooltips to the app grid - Added 4 new backgrounds Contact App: - Fix styling issue that lead to seeing the background from modal - Fix add new contact button sticky position Notes: - Removed padding from list - Fixed localeName Sellout: - Changed NavBar and Title Color Settings: - Removed modal list padding Note: Let me if you prefer the AppTitle component vs the old Title method also this is just a start to the full app restyles
This commit is contained in:
1 parent
f7165bf9ae
commit
954ef6277c
18 files changed
+316
-291
No files matched your search
@@ -1,25 +1,25 @@
|
||||
import React from "react";
|
||||
import { AppWrapper } from "../../../ui/components";
|
||||
import { makeStyles, createStyles, Theme } from "@material-ui/core/styles";
|
||||
import { AppTitle } from "../../../ui/components/AppTitle";
|
||||
import { AppContent } from "../../../ui/components/AppContent";
|
||||
import { ContactList } from "./List/ContactList";
|
||||
import { useApp } from "../../../os/apps/hooks/useApps";
|
||||
import { AddContactModal } from "./ContactModal";
|
||||
import { useModal } from "../hooks/useModal";
|
||||
import { SearchContacts } from "./List/SearchContacts";
|
||||
import PersonAddIcon from "@material-ui/icons/PersonAdd";
|
||||
import Fab from "@material-ui/core/Fab";
|
||||
import { useContactModal } from "../hooks/useContactModal";
|
||||
import { InfoModal } from "./modal/InfoModal";
|
||||
import { useContactDetail } from "../hooks/useContactDetail";
|
||||
import React from 'react';
|
||||
import { AppWrapper } from '../../../ui/components';
|
||||
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
|
||||
import { AppTitle } from '../../../ui/components/AppTitle';
|
||||
import { AppContent } from '../../../ui/components/AppContent';
|
||||
import { ContactList } from './List/ContactList';
|
||||
import { useApp } from '../../../os/apps/hooks/useApps';
|
||||
import { AddContactModal } from './ContactModal';
|
||||
import { useModal } from '../hooks/useModal';
|
||||
import { SearchContacts } from './List/SearchContacts';
|
||||
import PersonAddIcon from '@material-ui/icons/PersonAdd';
|
||||
import Fab from '@material-ui/core/Fab';
|
||||
import { useContactModal } from '../hooks/useContactModal';
|
||||
import { InfoModal } from './modal/InfoModal';
|
||||
import { useContactDetail } from '../hooks/useContactDetail';
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) =>
|
||||
createStyles({
|
||||
backgroundModal: {
|
||||
background: "black",
|
||||
opacity: "0.6",
|
||||
position: "absolute",
|
||||
background: 'black',
|
||||
opacity: '0.6',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
@@ -27,9 +27,9 @@ const useStyles = makeStyles((theme: Theme) =>
|
||||
zIndex: 5,
|
||||
},
|
||||
absolute: {
|
||||
position: "sticky",
|
||||
position: 'absolute',
|
||||
bottom: theme.spacing(2),
|
||||
left: theme.spacing(3),
|
||||
right: theme.spacing(3),
|
||||
},
|
||||
})
|
||||
);
|
||||
@@ -37,7 +37,7 @@ const useStyles = makeStyles((theme: Theme) =>
|
||||
export const ContactsApp = () => {
|
||||
const classes = useStyles();
|
||||
const { showModal, setShowModal } = useModal();
|
||||
const contacts = useApp("CONTACTS");
|
||||
const contacts = useApp('CONTACTS');
|
||||
const { contactDetail } = useContactDetail();
|
||||
|
||||
const openModal = () => {
|
||||
@@ -45,7 +45,7 @@ export const ContactsApp = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<AppWrapper id="contact-app">
|
||||
<AppWrapper id='contact-app'>
|
||||
<AppTitle app={contacts}></AppTitle>
|
||||
<SearchContacts />
|
||||
<AddContactModal />
|
||||
@@ -55,7 +55,7 @@ export const ContactsApp = () => {
|
||||
<ContactList />
|
||||
<Fab
|
||||
onClick={openModal}
|
||||
style={{ backgroundColor: "#2196f3", color: "#fff" }}
|
||||
style={{ backgroundColor: '#2196f3', color: '#fff' }}
|
||||
className={classes.absolute}
|
||||
>
|
||||
<PersonAddIcon />
|
||||
|
||||
Reference in new issue
Block a user