mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
styling: Enforced styling across all files (#55)
This commit is contained in:
165 files changed
+1879
-1725
No files matched your search
@@ -1,38 +1,38 @@
|
||||
import React from "react";
|
||||
import { IconButton } from "@material-ui/core";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import CloseIcon from "@material-ui/icons/Close";
|
||||
import React from 'react';
|
||||
import { IconButton } from '@material-ui/core';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import CloseIcon from '@material-ui/icons/Close';
|
||||
|
||||
const useStyles = makeStyles(() => ({
|
||||
root: {
|
||||
margin: "2px 15px",
|
||||
margin: '2px 15px',
|
||||
},
|
||||
imageContainer: {
|
||||
// catch the close button here so it doesn't go all the way up to the modal
|
||||
position: "relative",
|
||||
display: "inline-block",
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
},
|
||||
imgButton: {
|
||||
position: "absolute", // show the close button in the top right of the image
|
||||
top: "2px",
|
||||
right: "5px",
|
||||
backgroundColor: "#000",
|
||||
position: 'absolute', // show the close button in the top right of the image
|
||||
top: '2px',
|
||||
right: '5px',
|
||||
backgroundColor: '#000',
|
||||
opacity: 0.7,
|
||||
"&:hover": {
|
||||
'&:hover': {
|
||||
// fixes a bug where when the user closes one image material-ui puts
|
||||
// the hover status on the previous image
|
||||
backgroundColor: "#000",
|
||||
backgroundColor: '#000',
|
||||
},
|
||||
},
|
||||
img: {
|
||||
maxHeight: "125px", // constrain images so we don't overwhelm the UI
|
||||
maxWidth: "300px",
|
||||
padding: "0px 3px 3px 0px",
|
||||
maxHeight: '125px', // constrain images so we don't overwhelm the UI
|
||||
maxWidth: '300px',
|
||||
padding: '0px 3px 3px 0px',
|
||||
},
|
||||
imgSmall: {
|
||||
maxHeight: "200px", // constrain images so we don't overwhelm the UI
|
||||
maxWidth: "100%",
|
||||
padding: "0px 1px 1px 0px",
|
||||
maxHeight: '200px', // constrain images so we don't overwhelm the UI
|
||||
maxWidth: '100%',
|
||||
padding: '0px 1px 1px 0px',
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -44,13 +44,13 @@ export const Image = ({ link, handleClick, small }) => {
|
||||
<IconButton
|
||||
className={classes.imgButton}
|
||||
onClick={handleClick}
|
||||
size="small"
|
||||
size='small'
|
||||
>
|
||||
<CloseIcon />
|
||||
</IconButton>
|
||||
)}
|
||||
<img
|
||||
alt="small avatar"
|
||||
alt='small avatar'
|
||||
className={small ? classes.imgSmall : classes.img}
|
||||
src={link}
|
||||
/>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import React from "react";
|
||||
import React from 'react';
|
||||
|
||||
import Image from "./Image";
|
||||
import Image from './Image';
|
||||
|
||||
export const ImageDisplay = ({ visible, images, removeImage, small }) => {
|
||||
if (!visible || !images || images.length === 0) return null;
|
||||
|
||||
const styles = { margin: small ? "2px 0px" : "2px 15px" };
|
||||
const styles = { margin: small ? '2px 0px' : '2px 15px' };
|
||||
|
||||
return (
|
||||
<div style={styles}>
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { TextField } from "@material-ui/core";
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { TextField } from '@material-ui/core';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
textField: {
|
||||
flex: "1 1 100%",
|
||||
padding: "10px 15px",
|
||||
marginTop: "15px",
|
||||
flex: '1 1 100%',
|
||||
padding: '10px 15px',
|
||||
marginTop: '15px',
|
||||
},
|
||||
textFieldInput: {
|
||||
fontSize: "22px",
|
||||
fontSize: '22px',
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -26,8 +26,8 @@ export const ImagePrompt = ({ visible, value, handleChange }) => {
|
||||
className={classes.textField}
|
||||
onChange={handleChange}
|
||||
multiline
|
||||
size="small"
|
||||
placeholder={t("APPS_TWITTER_IMAGE_PLACEHOLDER")}
|
||||
size='small'
|
||||
placeholder={t('APPS_TWITTER_IMAGE_PLACEHOLDER')}
|
||||
inputRef={(input) => input && input.focus()}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user