Button: More sizing fixes (#6143)
This commit is contained in:
parent
16b26c6e42
commit
f4240a93ab
@ -98,14 +98,6 @@
|
|||||||
.form {
|
.form {
|
||||||
min-height: 26.25rem;
|
min-height: 26.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Button {
|
|
||||||
margin-top: 2.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Button + .Button {
|
|
||||||
margin-top: 1rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#auth-code-form,
|
#auth-code-form,
|
||||||
@ -139,6 +131,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.auth-button {
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.auth-button + .auth-button {
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.auth-button.text + .auth-button.text {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#auth-qr-form {
|
#auth-qr-form {
|
||||||
.qr-outer {
|
.qr-outer {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@ -274,18 +274,38 @@ const AuthPhoneNumber: FC<StateProps> = ({
|
|||||||
/>
|
/>
|
||||||
{canSubmit && (
|
{canSubmit && (
|
||||||
isAuthReady ? (
|
isAuthReady ? (
|
||||||
<Button size="smaller" type="submit" ripple isLoading={authIsLoading}>{lang('LoginNext')}</Button>
|
<Button
|
||||||
|
className="auth-button"
|
||||||
|
type="submit"
|
||||||
|
ripple
|
||||||
|
isLoading={authIsLoading}
|
||||||
|
>
|
||||||
|
{lang('LoginNext')}
|
||||||
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Loading />
|
<Loading />
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
{isAuthReady && (
|
{isAuthReady && (
|
||||||
<Button size="smaller" isText ripple isLoading={authIsLoadingQrCode} onClick={handleGoToAuthQrCode}>
|
<Button
|
||||||
|
className="auth-button"
|
||||||
|
isText
|
||||||
|
ripple
|
||||||
|
isLoading={authIsLoadingQrCode}
|
||||||
|
onClick={handleGoToAuthQrCode}
|
||||||
|
>
|
||||||
{lang('LoginQRLogin')}
|
{lang('LoginQRLogin')}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{suggestedLanguage && suggestedLanguage !== language && continueText && (
|
{suggestedLanguage && suggestedLanguage !== language && continueText && (
|
||||||
<Button size="smaller" isText isLoading={isLoading} onClick={handleLangChange}>{continueText}</Button>
|
<Button
|
||||||
|
className="auth-button"
|
||||||
|
isText
|
||||||
|
isLoading={isLoading}
|
||||||
|
onClick={handleLangChange}
|
||||||
|
>
|
||||||
|
{continueText}
|
||||||
|
</Button>
|
||||||
)}
|
)}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -190,10 +190,14 @@ const AuthCode = ({
|
|||||||
<li><span>{lang('LoginQRHelp3')}</span></li>
|
<li><span>{lang('LoginQRHelp3')}</span></li>
|
||||||
</ol>
|
</ol>
|
||||||
{isAuthReady && (
|
{isAuthReady && (
|
||||||
<Button size="smaller" isText onClick={handleReturnToAuthPhoneNumber}>{lang('LoginQRCancel')}</Button>
|
<Button className="auth-button" isText onClick={handleReturnToAuthPhoneNumber}>
|
||||||
|
{lang('LoginQRCancel')}
|
||||||
|
</Button>
|
||||||
)}
|
)}
|
||||||
{suggestedLanguage && suggestedLanguage !== language && continueText && (
|
{suggestedLanguage && suggestedLanguage !== language && continueText && (
|
||||||
<Button size="smaller" isText isLoading={isLoading} onClick={handleLangChange}>{continueText}</Button>
|
<Button className="auth-button" isText isLoading={isLoading} onClick={handleLangChange}>
|
||||||
|
{continueText}
|
||||||
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -459,7 +459,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.message-input-wrapper {
|
.message-input-wrapper {
|
||||||
--action-button-size: var(--base-height, 3.5rem);
|
--action-button-size: var(--base-height, 3rem);
|
||||||
--action-button-compact-fix: -1rem;
|
--action-button-compact-fix: -1rem;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -648,7 +648,7 @@
|
|||||||
|
|
||||||
.input-scroller {
|
.input-scroller {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-height: var(--base-height, 3.5rem);
|
min-height: var(--base-height, 3rem);
|
||||||
max-height: 26rem;
|
max-height: 26rem;
|
||||||
|
|
||||||
/* stylelint-disable-next-line plugin/no-low-performance-animation-properties */
|
/* stylelint-disable-next-line plugin/no-low-performance-animation-properties */
|
||||||
@ -709,7 +709,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
height: auto;
|
height: auto;
|
||||||
padding: calc((var(--base-height, 3.5rem) - var(--composer-text-size, 1rem) * 1.375) / 2) 0.875rem;
|
padding: calc((var(--base-height, 3rem) - var(--composer-text-size, 1rem) * 1.375) / 2) 0.875rem;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
|
|
||||||
@ -847,7 +847,7 @@
|
|||||||
.form-control {
|
.form-control {
|
||||||
height: auto;
|
height: auto;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
padding: calc((var(--base-height, 3.5rem) - var(--composer-text-size, 1rem) * 1.3125) / 2) 0;
|
padding: calc((var(--base-height, 3rem) - var(--composer-text-size, 1rem) * 1.3125) / 2) 0;
|
||||||
|
|
||||||
line-height: 1.3125;
|
line-height: 1.3125;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
@ -859,7 +859,7 @@
|
|||||||
|
|
||||||
.forced-placeholder,
|
.forced-placeholder,
|
||||||
.placeholder-text {
|
.placeholder-text {
|
||||||
top: calc((var(--base-height, 3.5rem) - var(--composer-text-size, 1rem) * 1.3125) / 2);
|
top: calc((var(--base-height, 3rem) - var(--composer-text-size, 1rem) * 1.3125) / 2);
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
top: calc((2.875rem - var(--composer-text-size, 1rem) * 1.3125) / 2);
|
top: calc((2.875rem - var(--composer-text-size, 1rem) * 1.3125) / 2);
|
||||||
@ -889,7 +889,7 @@
|
|||||||
#caption-input-text {
|
#caption-input-text {
|
||||||
--margin-for-scrollbar: 2rem;
|
--margin-for-scrollbar: 2rem;
|
||||||
.input-scroller {
|
.input-scroller {
|
||||||
min-height: var(--base-height, 3.5rem);
|
min-height: var(--base-height, 3rem);
|
||||||
max-height: 10rem;
|
max-height: 10rem;
|
||||||
margin-right: calc((var(--margin-for-scrollbar) + 1rem) * -1);
|
margin-right: calc((var(--margin-for-scrollbar) + 1rem) * -1);
|
||||||
|
|
||||||
@ -933,11 +933,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#caption-input-text .placeholder-text {
|
#caption-input-text .placeholder-text {
|
||||||
bottom: 1.0625rem;
|
bottom: 0.8125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#story-input-text .placeholder-text {
|
#story-input-text .placeholder-text {
|
||||||
top: calc((var(--base-height, 3.5rem) - var(--composer-text-size, 1rem) * 1.3125) / 2);
|
top: calc((var(--base-height, 3rem) - var(--composer-text-size, 1rem) * 1.3125) / 2);
|
||||||
left: 0.875rem;
|
left: 0.875rem;
|
||||||
|
|
||||||
&.is-need-premium {
|
&.is-need-premium {
|
||||||
|
|||||||
@ -331,7 +331,7 @@ const HeaderActions: FC<OwnProps & StateProps> = ({
|
|||||||
<>
|
<>
|
||||||
{canExpandActions && !shouldSendJoinRequest && (canSubscribe || shouldJoinToSend) && (
|
{canExpandActions && !shouldSendJoinRequest && (canSubscribe || shouldJoinToSend) && (
|
||||||
<Button
|
<Button
|
||||||
size="tiny"
|
size="smaller"
|
||||||
ripple
|
ripple
|
||||||
fluid
|
fluid
|
||||||
onClick={handleSubscribeClick}
|
onClick={handleSubscribeClick}
|
||||||
@ -341,7 +341,7 @@ const HeaderActions: FC<OwnProps & StateProps> = ({
|
|||||||
)}
|
)}
|
||||||
{canExpandActions && shouldSendJoinRequest && (
|
{canExpandActions && shouldSendJoinRequest && (
|
||||||
<Button
|
<Button
|
||||||
size="tiny"
|
size="smaller"
|
||||||
ripple
|
ripple
|
||||||
fluid
|
fluid
|
||||||
onClick={handleSubscribeClick}
|
onClick={handleSubscribeClick}
|
||||||
@ -351,7 +351,7 @@ const HeaderActions: FC<OwnProps & StateProps> = ({
|
|||||||
)}
|
)}
|
||||||
{canExpandActions && canStartBot && (
|
{canExpandActions && canStartBot && (
|
||||||
<Button
|
<Button
|
||||||
size="tiny"
|
size="smaller"
|
||||||
ripple
|
ripple
|
||||||
fluid
|
fluid
|
||||||
onClick={handleStartBot}
|
onClick={handleStartBot}
|
||||||
@ -371,7 +371,7 @@ const HeaderActions: FC<OwnProps & StateProps> = ({
|
|||||||
)}
|
)}
|
||||||
{canExpandActions && canUnblock && (
|
{canExpandActions && canUnblock && (
|
||||||
<Button
|
<Button
|
||||||
size="tiny"
|
size="smaller"
|
||||||
ripple
|
ripple
|
||||||
fluid
|
fluid
|
||||||
onClick={handleUnblock}
|
onClick={handleUnblock}
|
||||||
|
|||||||
@ -77,7 +77,7 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
.last-in-list {
|
.last-in-list {
|
||||||
margin-bottom: 5.625rem;
|
margin-bottom: 5.125rem;
|
||||||
|
|
||||||
&.ActionMessage {
|
&.ActionMessage {
|
||||||
padding-bottom: 0.125rem;
|
padding-bottom: 0.125rem;
|
||||||
@ -89,7 +89,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:has(.sponsored-media-preview) {
|
&:has(.sponsored-media-preview) {
|
||||||
margin-bottom: 5.625rem;
|
margin-bottom: 5.125rem;
|
||||||
|
|
||||||
.last-in-list {
|
.last-in-list {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|||||||
@ -81,16 +81,6 @@
|
|||||||
|
|
||||||
transition: transform var(--select-transition), opacity var(--select-transition);
|
transition: transform var(--select-transition), opacity var(--select-transition);
|
||||||
|
|
||||||
> .Button {
|
|
||||||
width: 3rem;
|
|
||||||
height: 3rem;
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
width: 2.875rem;
|
|
||||||
height: 2.875rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
@ -98,11 +98,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#editable-message-text {
|
#editable-message-text {
|
||||||
height: 3.5rem !important;
|
height: var(--base-height) !important;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
height: 2.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-input-wrapper,
|
.message-input-wrapper,
|
||||||
@ -157,6 +153,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.middle-column-footer {
|
.middle-column-footer {
|
||||||
|
--base-height: 3rem;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: var(--z-middle-footer);
|
z-index: var(--z-middle-footer);
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
@ -334,17 +332,13 @@
|
|||||||
|
|
||||||
.composer-button {
|
.composer-button {
|
||||||
transform: scaleX(1);
|
transform: scaleX(1);
|
||||||
height: 3.5rem;
|
height: var(--base-height);
|
||||||
transition: transform var(--select-transition), background-color 0.15s, color 0.15s;
|
transition: transform var(--select-transition), background-color 0.15s, color 0.15s;
|
||||||
|
|
||||||
.select-mode-active + .middle-column-footer & {
|
.select-mode-active + .middle-column-footer & {
|
||||||
transform: scaleX(var(--unpin-hidden-scale));
|
transform: scaleX(var(--unpin-hidden-scale));
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
height: 2.5rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.open-chat-button {
|
.open-chat-button {
|
||||||
|
|||||||
@ -276,11 +276,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.Button.smaller {
|
|
||||||
width: 2.5rem;
|
|
||||||
height: 2.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.HeaderActions {
|
.HeaderActions {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
&--menu {
|
&--menu {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -3.5rem;
|
top: -3rem;
|
||||||
|
|
||||||
.bubble {
|
.bubble {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
@ -19,7 +19,7 @@
|
|||||||
.is-pointer-env & {
|
.is-pointer-env & {
|
||||||
> .backdrop {
|
> .backdrop {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -1rem;
|
top: -0.5rem;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: auto;
|
left: auto;
|
||||||
|
|
||||||
|
|||||||
@ -218,8 +218,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.send {
|
.send {
|
||||||
height: 2.5rem;
|
padding: 0 1rem !important;
|
||||||
padding: 0 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:global {
|
:global {
|
||||||
|
|||||||
@ -748,6 +748,7 @@ const AttachmentModal: FC<OwnProps & StateProps> = ({
|
|||||||
<Button
|
<Button
|
||||||
ref={mainButtonRef}
|
ref={mainButtonRef}
|
||||||
className={styles.send}
|
className={styles.send}
|
||||||
|
size="smaller"
|
||||||
onClick={handleSendClick}
|
onClick={handleSendClick}
|
||||||
onContextMenu={canShowCustomSendMenu ? handleContextMenu : undefined}
|
onContextMenu={canShowCustomSendMenu ? handleContextMenu : undefined}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
.CustomSendMenu {
|
.CustomSendMenu {
|
||||||
position: relative;
|
position: relative;
|
||||||
bottom: 3.5rem;
|
bottom: 3rem;
|
||||||
|
|
||||||
.is-pointer-env & {
|
.is-pointer-env & {
|
||||||
> .backdrop {
|
> .backdrop {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -1rem;
|
top: -0.5rem;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: auto;
|
left: auto;
|
||||||
|
|
||||||
|
|||||||
@ -135,7 +135,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bubble {
|
.bubble {
|
||||||
--offset-y: 4rem;
|
--offset-y: 3.5rem;
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user