Skip to content

Commit 894193d

Browse files
authored
Fix Heights & Widths in Modals (#61)
* fix typo * fix heights getting lost in hierarchy
1 parent 6644099 commit 894193d

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/Photo.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.Photo {
2+
height: 100%;
3+
width: 100%;
24
position: relative;
35
display: inline-block;
46
}

src/containers/Modal.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
z-index: 2;
1313
}
1414

15-
.Model {
15+
.Modal {
1616
max-height: 80%;
1717
max-width: 80%;
1818
display: flex;

src/containers/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Modal = ({ close, children }: ModalProps) => {
3232
className={styles.CloseButton}
3333
onClick={close}
3434
/>
35-
<div className={styles.Model}>{children}</div>
35+
<div className={styles.Modal}>{children}</div>
3636
</div>
3737
);
3838
};

0 commit comments

Comments
 (0)