Skip to content

Commit

Permalink
Merge pull request #325 from Dyalog/revert-324-fix/msgbox-sizing-rend…
Browse files Browse the repository at this point in the history
…ering

Revert "#323 msg box sizing fixed"
  • Loading branch information
cursork authored Dec 17, 2024
2 parents 37155af + 213304f commit 8eaa1b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/components/MessageBox/MessageBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
background: white;
/* padding: 20px; */
width: 300px;
min-height: 150px;
height: 150px;
/* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
display: flex;
flex-direction: column;
justify-content: space-between;
border: none;
border-radius: 0 0 10px 10px;
}

.msgbox-container.with-border{
Expand All @@ -35,11 +34,11 @@
margin-bottom: 10px;
background-color: lightgrey;
padding: 10px;
border-radius: 10px 10px 0 0;
/* border-radius: 10px 10px 0 0; */
}

.msgbox-header.with-border{
/* border-radius: 10px; */
border-radius: 10px;
}

.msgbox-body {
Expand Down Expand Up @@ -96,11 +95,11 @@
justify-content: space-between;
background-color: lightgrey;
padding: 10px;
border-radius: 0 0 10px 10px;
/* border-radius: 0 0 10px 10px; */
}

.msgbox-footer.with-border{
/* border-radius: 10px; */
border-radius: 10px;
}

.rounded-button {
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessageBox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const MsgBox = ({ data, onClose, isDesktop, options }) => {
)}
<span>{Text}</span>
</div>
<div className={`msgbox-footer with-border`}>
<div className={`msgbox-footer ${renderCheck ? 'with-border': ''}`}>
{Array.isArray(Btns) ? (
Btns.map((btn, index) => (
<button
Expand Down

0 comments on commit 8eaa1b4

Please sign in to comment.