Fix message buttons in text area.

Restyled accessibility tab in settings.
This commit is contained in:
Er2 2022-03-27 12:22:00 +03:00
parent 31896c4fb1
commit ba3d13a90e
4 changed files with 23 additions and 5 deletions

View file

@ -85,8 +85,12 @@ h2[class^="privateChannelsHeaderContainer"], // direct messages label
// #private-channels-0, #private-channels-1, #private-channels-2, // to check
// Text area
div[class^="channelTextArea-"] div div > div // only attach and emoji at text area
button:not([class^="emojiButton"]):not([class^="attachButton-"]),
div[class^="channelTextArea-"] div div > div[class^="buttons-"]
> button, // gift button, f you
div[class^="channelTextArea-"] div div > div[class^="buttons-"] // block all except emoji (and send button, if exists)
> div.expression-picker-chat-input-button:not(:nth-child(4)),
div[class^="channelTextArea-"] > div[class^="scrollableContainer-"] // divider breaks redesigned text area
div[class^="divider-"],

View file

@ -3,7 +3,6 @@
* Zlib License
*/
div[class^="accountProfileCard-"] div[class^="userInfo-"] {
// settings
justify-content: left;

View file

@ -105,6 +105,20 @@ div[class^="baseLayout-"] {
}
}
#accessibility-tab div div[class^="children-"] {
& > div {
&:nth-child(2),
&:nth-child(3),
&:nth-child(6),
&:nth-child(7)
{ display: none; }
&:nth-child(4) {
margin-top: @div-width * 2;
}
}
}
#notifications-tab div[class^="children"] {
div:nth-child(6)
{ display: none; }

View file

@ -184,8 +184,9 @@ div[class^="channelTextArea-"] {
div[class^="buttons-"] {
height: auto; // to match input height
flex-direction: column; // to allow buttons center
justify-content: center; // and center it
& > * {
align-items: center; // center buttons
}
.left-border();
}
}