aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Options.js
diff options
context:
space:
mode:
authorJacky Zhao <[email protected]>2021-04-14 10:09:04 -0700
committerGitHub <[email protected]>2021-04-14 10:09:04 -0700
commitd271a7399c814e14e308c832ab2c2202f06e5c90 (patch)
treef08a0b5e38d2db739f8ce95cbeda065e2a0b0322 /frontend/src/components/Options.js
parentMerge pull request #78 from Siddhant-K-code/master (diff)
parentAdded Requested CSS chnages to fix textBox (diff)
downloadctrl-v-d271a7399c814e14e308c832ab2c2202f06e5c90.tar.xz
ctrl-v-d271a7399c814e14e308c832ab2c2202f06e5c90.zip
Merge pull request #80 from Siddhant-K-code/master
Diffstat (limited to 'frontend/src/components/Options.js')
-rw-r--r--frontend/src/components/Options.js64
1 files changed, 33 insertions, 31 deletions
diff --git a/frontend/src/components/Options.js b/frontend/src/components/Options.js
index 97d3127..3c55a20 100644
--- a/frontend/src/components/Options.js
+++ b/frontend/src/components/Options.js
@@ -1,39 +1,41 @@
-import React from 'react';
-import styled from 'styled-components'
-import { Password, Expiry, Language } from './Inputs'
+import React from "react";
+import styled from "styled-components";
+import { Password, Expiry, Language } from "./Inputs";
const Flex = styled.div`
- float: right;
- display: flex;
- flex-direction: row;
- transform: translateY(0.2em);
-
+ float: right;
+ display: flex;
+ flex-direction: row;
+ transform: translateY(0.2em);
+
+ @media (min-width: 650px) {
& > *:not(:first-child) {
margin-left: 2em;
}
+ }
- @media (max-width: 850px) {
- float: none !important;
- }
-`
+ @media (max-width: 650px) {
+ position: relative;
+ float: none !important;
+ flex-direction: column;
+ }
+`;
-const OptionsContainer = ({pass, lang, expiry, onPassChange, onLangChange, onExpiryChange}) => {
- return (
- <Flex>
- <Password
- value={pass}
- onChange={onPassChange}
- id="passwordInput" />
- <Language
- value={lang}
- onChange={onLangChange}
- id="langInput" />
- <Expiry
- value={expiry}
- onChange={onExpiryChange}
- id="expiryInput" />
- </Flex>
- );
-}
+const OptionsContainer = ({
+ pass,
+ lang,
+ expiry,
+ onPassChange,
+ onLangChange,
+ onExpiryChange,
+}) => {
+ return (
+ <Flex>
+ <Password value={pass} onChange={onPassChange} id="passwordInput" />
+ <Language value={lang} onChange={onLangChange} id="langInput" />
+ <Expiry value={expiry} onChange={onExpiryChange} id="expiryInput" />
+ </Flex>
+ );
+};
-export default OptionsContainer \ No newline at end of file
+export default OptionsContainer;