mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
css fixes and refactors
This commit is contained in:
parent
cb3864c67a
commit
1364e4400f
2 changed files with 11 additions and 20 deletions
|
@ -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;
|
||||
|
|
|
@ -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}
|
||||
onAction={canShare ? onShare : onShareAttempt}
|
||||
/>);
|
||||
} else {
|
||||
banner = (<Banner
|
||||
actionMessage={<FormattedMessage id="project.share.shareButton" />}
|
||||
message={<FormattedMessage id="project.share.notShared" />}
|
||||
onAction={onShareAttempt}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue