Composer: More fixes for icons

This commit is contained in:
Alexander Zinchuk 2021-08-21 16:59:52 +03:00
parent 27e0a11353
commit 77d2c276a1
5 changed files with 20 additions and 11 deletions

View File

@ -18,16 +18,20 @@
display: flex;
align-items: center;
padding-right: 0.625rem;
padding-top: 0.45rem;
padding-top: 0.1875rem;
}
& > div > .Button {
flex-shrink: 0;
background: none !important;
width: 2.125rem;
height: 2.125rem;
margin: 0 0.625rem;
width: 3.5rem;
height: 2.875rem;
margin: 0 -0.0625rem 0 0;
padding: 0;
align-self: center;
@media (max-width: 600px) {
width: 2.875rem;
}
}
}

View File

@ -97,7 +97,7 @@ const ComposerEmbeddedMessage: FC<StateProps & DispatchProps> = ({
return (
<div className={className}>
<div>
<Button round color="translucent" ariaLabel="Cancel replying" onClick={clearEmbedded}>
<Button round faded color="translucent" ariaLabel="Cancel replying" onClick={clearEmbedded}>
<i className="icon-close" />
</Button>
<EmbeddedMessage

View File

@ -14,11 +14,12 @@
height: 0 !important;
}
// TODO Remove duplication with `.ComposerEmbeddedMessage`
& > div {
display: flex;
align-items: center;
padding-right: 0.625rem;
padding-top: 0.45rem;
padding-top: 0.1875rem;
}
--accent-color: var(--color-primary);
@ -30,11 +31,15 @@
& > div > .Button {
flex-shrink: 0;
background: none !important;
width: 2.125rem;
height: 2.125rem;
margin: 0 0.625rem;
width: 3.5rem;
height: 2.875rem;
margin: 0 -0.0625rem 0 0;
padding: 0;
align-self: center;
@media (max-width: 600px) {
width: 2.875rem;
}
}
.WebPage {

View File

@ -100,7 +100,7 @@ const WebPagePreview: FC<OwnProps & StateProps & DispatchProps> = ({
return (
<div className={buildClassName('WebPagePreview', transitionClassNames)}>
<div>
<Button round color="translucent" ariaLabel="Clear Webpage Preview" onClick={handleClearWebpagePreview}>
<Button round faded color="translucent" ariaLabel="Clear Webpage Preview" onClick={handleClearWebpagePreview}>
<i className="icon-close" />
</Button>
<WebPage message={messageStub} inPreview />

View File

@ -154,7 +154,7 @@
}
&.faded {
opacity: 0.75;
opacity: 0.8;
@include active-styles() {
opacity: 1;