Skip to content

Commit

Permalink
minor styling adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
SammCheese committed Jan 24, 2023
1 parent 46e6e05 commit 26a408f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/DecryptionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function DecModal(props: ModalProps) {
<Text.H1 style={{ fontSize: "30px" }}>Decrypt Message</Text.H1>
</Modal.ModalHeader>
<Modal.ModalContent>
<Text>Secret</Text>
<Text.Eyebrow style={{ marginBottom: "5px" }}>Secret</Text.Eyebrow>
{/* @ts-expect-error faulty type */}
<TextInput defaultValue={secret} disabled={true}></TextInput>
<Text>Password</Text>
<Text.Eyebrow style={{ marginBottom: "5px" }}>Password</Text.Eyebrow>
<TextInput
placeholder={defaultPassword}
onChange={(e: string) => {
Expand Down
14 changes: 10 additions & 4 deletions src/components/EncryptionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,22 @@ function EncModal(props: ModalProps) {
<Text.H1>Encrypt Message</Text.H1>
</Modal.ModalHeader>
<Modal.ModalContent>
<Text style={{ marginTop: "10px" }}>Secret Message</Text>
<Text.Eyebrow style={{ marginTop: "10px", marginBottom: "5px" }}>
Secret Message
</Text.Eyebrow>
<TextInput
onChange={(e: string) => {
setSecret(e);
}}></TextInput>
<Text style={{ marginTop: "10px" }}>Cover (2 or more Words!!)</Text>
<Text.Eyebrow style={{ marginTop: "10px", marginBottom: "5px" }}>
Cover (2 or more Words!!)
</Text.Eyebrow>
<TextInput
disabled={DontUseCover}
onChange={(e: string) => {
setCover(e);
}}></TextInput>
<Text style={{ marginTop: "10px" }}>Password</Text>
<Text.Eyebrow style={{ marginTop: "10px", marginBottom: "5px" }}>Password</Text.Eyebrow>
<TextInput
placeholder={defaultPassword}
onChange={(e: string) => {
Expand All @@ -53,7 +57,9 @@ function EncModal(props: ModalProps) {
setDontUseCover(e);
}}
/>
<Text style={{ left: "20px", top: "4px", position: "relative" }}>Dont use a Cover</Text>
<Text.Eyebrow style={{ left: "20px", top: "4px", position: "relative" }}>
Dont use a Cover
</Text.Eyebrow>
</Flex>
<Divider style={{ marginTop: "10px", marginBottom: "10px" }} />
</Modal.ModalContent>
Expand Down
8 changes: 5 additions & 3 deletions src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ export function Settings() {

return (
<>
<Text.H2>Default Password</Text.H2>
<Text.Eyebrow style={{ marginBottom: "5px" }}>Default Password</Text.Eyebrow>
<TextInput
value={defaultSetting}
onChange={(e: string) => {
InvSettings.set("defaultPassword", e);
setDefaultSetting(e);
}}
/>
<Divider />
<Text.H2>Saved Passwords (separated by a ", ")</Text.H2>
<Divider style={{ marginTop: "10px", marginBottom: "10px" }} />
<Text.Eyebrow style={{ marginBottom: "5px" }}>
Saved Passwords (separated by a ", ")
</Text.Eyebrow>
<TextInput
placeholder="password, placeholder, test"
value={passwords.join(", ")}
Expand Down

0 comments on commit 26a408f

Please sign in to comment.