Skip to content

Commit

Permalink
style(download): fix divider size
Browse files Browse the repository at this point in the history
  • Loading branch information
trybick committed Jan 3, 2021
1 parent df3922b commit 5c91823
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "gifconvert",
"version": "1.2.0",
"version": "1.2.1",
"license": "ISC",
"homepage": ".",
"main": "build/electron/main.js",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"postinstall": "electron-builder install-app-deps",
"format": "eslint --fix --ext .tsx,.js,.ts .",
"bundle-images": "mkdir -p ./build/electron/images && cp -r ./electron/images ./build/electron/",
"electron:dev": "yarn bundle-images && concurrently \"BROWSER=none cross-env PORT=4002 yarn start\" \"wait-on http://localhost:4002 && tsc -p electron -w\" \"wait-on http://localhost:4002 && tsc -p electron && electron .\"",
"electron:build-app": "yarn build && yarn bundle-images && tsc -p electron && electron-builder --dir",
"electron:build-all": "yarn build && yarn bundle-images && tsc -p electron && electron-builder",
"format": "eslint --fix --ext .tsx,.js,.ts .",
"browser:start": "REACT_APP_BROWSER_ONLY=true cross-env PORT=5002 yarn start"
},
"build": {
Expand Down
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const ConverterWrapper = styled(Box)`
background-color: white;
border: 2px solid grey;
border-radius: 34px;
margin-top: 25px;
width: 600px;
`}
`;
2 changes: 1 addition & 1 deletion src/components/converter/subcomponents/DownloadSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function DownloadButton({

return gif ? (
<Box zIndex={isDropActive ? '0' : '11'}>
<Divider borderWidth="1px" maxW="310px" mt="20px" opactiy="1" />
<Divider borderWidth="1px" mt="20px" opactiy="1" />
<Box mt="20px">
<Image borderRadius="4px" height="200px" src={gif} />
<Flex alignItems="center" direction="column" justifyContent="center" mt="12px">
Expand Down
2 changes: 0 additions & 2 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const isBrowserOnly = process.env.REACT_APP_BROWSER_ONLY === 'true';

// Use this to differentiate between browser and electron env.
// Currently not in use.
export const isElectron = !isBrowserOnly;

0 comments on commit 5c91823

Please sign in to comment.