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{
border-radius: 4px;
overflow: hidden;
max-width: 31.25rem;
max-width: 500px;
h1{
font-size: 32px;
line-height: 40px;
font-size: 2rem;
line-height: 2.5rem;
}
.modal-content-close{
top: 0.3rem;
right: 0.3rem;
top: 5px;
right: 5px;
}
.modal-middle-content{
display: flex;
}
.modal-right-content{
.modal-text-content{
margin-top: 30px;
margin-bottom: 30px;
margin-right: 20px;

View file

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