Skip to content

Commit 4c61091

Browse files
committed
Fix to modals.
1 parent cc7de50 commit 4c61091

File tree

5 files changed

+4
-23
lines changed

5 files changed

+4
-23
lines changed

mystbin/frontend/components/EditorTabs.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,6 @@ export default function EditorTabs({
235235
}}
236236
enabled={value.length <= 4 && !id}
237237
/>
238-
{!pid ? (
239-
<div className={styles.addAttachmentIconContainer}>
240-
<Button>
241-
<InsertPhotoIcon className={styles.addAttachmentIcon} />
242-
</Button>
243-
<span className={styles.addAttachmentsText}>Add Images</span>
244-
</div>
245-
) : null}
246238
</div>
247239

248240
{value.map((v, i, arr) => (

mystbin/frontend/components/ExpiryModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export default function ExpiryModal({
5252
</Modal.Header>
5353
<Modal.Body>
5454
<Form
55-
inline
5655
style={{
5756
justifyContent: "center",
5857
}}
@@ -70,7 +69,6 @@ export default function ExpiryModal({
7069
id={`expiry-${optName}`}
7170
className="my-1 mr-sm-2"
7271
as={"select"}
73-
custom
7472
onChange={(e) => {
7573
const oldExpiry = expiryValue;
7674
oldExpiry[index] = parseInt(e.target.value);

mystbin/frontend/components/PasswordInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export default function PasswordInput({
2424
onChange={(event) => {
2525
onChange(event.currentTarget.value);
2626
}}
27-
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
27+
onKeyDown={(e) => {
2828
if (e.key === "Enter") {
2929
e.preventDefault();
3030
onSubmit(value);
3131
}
3232
}}
3333
/>
34-
<InputGroup.Append>
34+
<InputGroup.Text>
3535
<span
3636
className={
3737
passwordHide
@@ -42,7 +42,7 @@ export default function PasswordInput({
4242
>
4343
{passwordHide ? <VisibilityIcon /> : <VisibilityOffIcon />}
4444
</span>
45-
</InputGroup.Append>
45+
</InputGroup.Text>
4646
</InputGroup>
4747
);
4848
}

mystbin/frontend/components/SetPasswordModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function SetPasswordModal({ onHide }: { onHide: () => void }) {
3131
show={true}
3232
onHide={onHide}
3333
aria-labelledby="contained-modal-title-vcenter"
34-
centered
34+
centered={true}
3535
className={styles.passwordModal}
3636
>
3737
<Modal.Header className={styles.passwordModalHeader}>
@@ -41,7 +41,6 @@ export default function SetPasswordModal({ onHide }: { onHide: () => void }) {
4141
</Modal.Header>
4242
<Modal.Body>
4343
<Form
44-
inline
4544
style={{
4645
justifyContent: "flex-start",
4746
display: "flex",

mystbin/frontend/styles/PasswordInput.module.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
opacity: 80%;
1010
cursor: pointer;
1111
display: flex;
12-
border-right: solid 1px #ced4da;
13-
border-top: solid 1px #ced4da;
14-
border-bottom: solid 1px #ced4da;
15-
border-radius: 0 5px 5px 0;
1612
padding: 6px;
1713
}
1814

@@ -22,9 +18,5 @@
2218
opacity: 80%;
2319
cursor: pointer;
2420
display: flex;
25-
border-right: solid 1px #ced4da;
26-
border-top: solid 1px #ced4da;
27-
border-bottom: solid 1px #ced4da;
28-
border-radius: 0 5px 5px 0;
2921
padding: 6px;
3022
}

0 commit comments

Comments
 (0)