Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Expandable table popup format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed May 3, 2022
1 parent 167e6ed commit 1c0d096
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,7 @@ const PopupRow = ({
>
<Modal.Header className="popup-header">{popupSchema.title}</Modal.Header>
<Modal.Content scrolling>
<Modal.Description style={{ display: 'flex' }}>
{popupSchema.description && (
<div className="description-container">
<ReadMore maxChars={600} text={popupSchema.description} />
</div>
)}
<div style={{ display: 'flex' }}>
{popupSchema.logo && (
<a
className="popup-logo-container"
Expand All @@ -220,34 +215,44 @@ const PopupRow = ({
/>
</a>
)}
{popupSchema.email && popupSchema.url && (
<div className="info-container">
{popupSchema.email && (
<div style={{ display: 'flex' }}>
<p style={{ margin: '0 10px 0 0', fontSize: '24px' }}>
Email:
</p>
<a href={`mailto:${popupSchema.email}`} className="popup-url">
{popupSchema.email}
</a>
</div>
)}
{popupSchema.url && (
<div style={{ display: 'flex' }}>
<p style={{ margin: '0 10px 0 0', fontSize: '24px' }}>
Website:
</p>
<a
href={popupSchema.url}
target="_blank"
rel="noreferrer"
className="popup-url"
>
{popupSchema.url}
</a>
</div>
)}
</div>
)}
</div>
<Modal.Description style={{ display: 'flex' }}>
{popupSchema.description && (
<div className="description-container">
<ReadMore maxChars={600} text={popupSchema.description} />
</div>
)}
</Modal.Description>
{popupSchema.email && popupSchema.url && (
<div className="info-container">
{popupSchema.email && (
<div style={{ display: 'flex' }}>
<p style={{ margin: '0 10px 0 0', fontSize: '24px' }}>Email:</p>
<a href={`mailto:${popupSchema.email}`} className="popup-url">
{popupSchema.email}
</a>
</div>
)}
{popupSchema.url && (
<div style={{ display: 'flex' }}>
<p style={{ margin: '0 10px 0 0', fontSize: '24px' }}>
Website:
</p>
<a
href={popupSchema.url}
target="_blank"
rel="noreferrer"
className="popup-url"
>
{popupSchema.url}
</a>
</div>
)}
</div>
)}

<div
style={{
display: 'flex',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@
}

.popup-logo-container {
margin-right: auto;
margin-left: auto;
margin-right: 20px;
}

.popup-logo {
Expand All @@ -162,7 +161,7 @@
}

.description-container {
width: 70%;
margin: 10px 0;
}

.popup-table {
Expand Down

0 comments on commit 1c0d096

Please sign in to comment.