Skip to content

Commit

Permalink
Merge branch 'dev' into feature/#529-justify-text-elements
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliodiez authored Nov 20, 2024
2 parents dac48b8 + 23d0a1f commit 62736e5
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
.container {
z-index: 2;
position: absolute;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: var(--primary-900-50-opacity);
}

.dialog {
position: relative;
z-index: 3;
width: 90%;
max-width: 1280px;
height: 80%;
overflow: auto;
border-radius: var(--border-radius-l);
}

.dialogContent {
overflow: auto;
flex: 1;
}

.dialogHeader {
position: sticky;
top: 0;
z-index: 4;
background-color: var(--primary-500);
width: 70vw;
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-s) var(--space-md);
border-top-left-radius: var(--border-radius-m);
border-top-right-radius: var(--border-radius-m);
border-top-left-radius: var(--border-radius-l);
border-top-right-radius: var(--border-radius-l);
}

.dialogTitle {
Expand All @@ -41,3 +58,10 @@
.dialogButton:hover {
cursor: pointer;
}

@media screen and (max-device-width: 780px) {
.dialog {
width: 92%;
height: 82%;
}
}
22 changes: 12 additions & 10 deletions src/common/components/modal-dialog/modal-dialog.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ export const ModalDialogComponent: React.FC = () => {
return (
isOpen && (
<div className={classes.container}>
<div className={classes.dialogHeader}>
<h2 className={classes.dialogTitle}>{title}</h2>
<button
className={classes.dialogButton}
onClick={handleClick}
aria-label="close modal dialog"
>
<XIconComponent />
</button>
<div className={classes.dialog}>
<div className={classes.dialogHeader}>
<h2 className={classes.dialogTitle}>{title}</h2>
<button
className={classes.dialogButton}
onClick={handleClick}
aria-label="close modal dialog"
>
<XIconComponent />
</button>
</div>
<div className={classes.dialogContent}>{selectedComponent}</div>
</div>
<div>{selectedComponent}</div>
</div>
)
);
Expand Down
1 change: 0 additions & 1 deletion src/pods/about/about.pod.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.container {
background-color: var(--primary-700);
width: 70vw;
height: auto;
display: flex;
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
display: flex;
flex-wrap: wrap;
gap: var(--space-md) var(--space-xxl);
align-items: start;
justify-content: center;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.container {
background-color: var(--primary-700);
width: 70vw;
height: auto;
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 62736e5

Please sign in to comment.