Skip to content

Commit da9dcc8

Browse files
authored
Merge pull request element-hq#4858 from Nostradamos/fix-4804
Fix overflowing login/register buttons on some languages issue element-hq#4804
2 parents a70e775 + 861b6a2 commit da9dcc8

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎src/components/structures/LoginBox.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = React.createClass({
8484

8585
var self = this;
8686
return (
87-
<div className="mx_SearchBox">
87+
<div className="mx_SearchBox mx_LoginBox">
8888
{ loginButton }
8989
{ toggleCollapse }
9090
</div>

‎src/skins/vector/css/matrix-react-sdk/structures/_LoginBox.scss‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,34 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
.mx_LoginBox {
18+
min-height: 24px;
19+
height: unset !important;
20+
padding-top: 13px !important;
21+
padding-bottom: 14px !important;
22+
}
23+
1724
.mx_LoginBox_loginButton_wrapper {
1825
text-align: center;
1926
width: 100%;
2027
}
2128

2229
.mx_LoginBox_loginButton,
2330
.mx_LoginBox_registerButton {
24-
margin-top: -8px;
31+
margin-top: 3px;
2532
height: 40px;
2633
border: 0px;
2734
border-radius: 40px;
2835
margin-left: 4px;
2936
margin-right: 4px;
30-
width: 80px;
37+
min-width: 80px;
3138

3239
background-color: $accent-color;
3340
color: $primary-bg-color;
3441

3542
cursor: pointer;
3643

3744
font-size: 15px;
45+
padding: 0 11px;
46+
word-break: break-word;
3847
}

0 commit comments

Comments
 (0)