css fixes and refactors

This commit is contained in:
tomlum 2021-12-15 12:01:06 -05:00 committed by seotts
parent cb3864c67a
commit 1364e4400f
2 changed files with 11 additions and 20 deletions

View file

@ -5,23 +5,23 @@
.modal-content{ .modal-content{
border-radius: 4px; border-radius: 4px;
overflow: hidden; overflow: hidden;
max-width: 31.25rem; max-width: 500px;
h1{ h1{
font-size: 32px; font-size: 2rem;
line-height: 40px; line-height: 2.5rem;
} }
.modal-content-close{ .modal-content-close{
top: 0.3rem; top: 5px;
right: 0.3rem; right: 5px;
} }
.modal-middle-content{ .modal-middle-content{
display: flex; display: flex;
} }
.modal-right-content{ .modal-text-content{
margin-top: 30px; margin-top: 30px;
margin-bottom: 30px; margin-bottom: 30px;
margin-right: 20px; margin-right: 20px;

View file

@ -192,20 +192,11 @@ const PreviewPresentation = ({
/>); />);
} }
} else if (!isShared) { } else if (!isShared) {
if (canShare){ banner = (<Banner
banner = (<Banner actionMessage={<FormattedMessage id="project.share.shareButton" />}
actionMessage={<FormattedMessage id="project.share.shareButton" />} message={<FormattedMessage id="project.share.notShared" />}
message={<FormattedMessage id="project.share.notShared" />} onAction={canShare ? onShare : onShareAttempt}
onAction={onShare} />);
/>);
} else {
banner = (<Banner
actionMessage={<FormattedMessage id="project.share.shareButton" />}
message={<FormattedMessage id="project.share.notShared" />}
onAction={onShareAttempt}
/>
);
}
} }
} }