Skip to content

Commit 69bd65a

Browse files
Merge pull request #424 from nextcloud/fix/hotbox-label-size
fix(editor): fit translated labels into the menus
2 parents 3d1a77f + cf08e7d commit 69bd65a

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎templates/viewer.php‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@
115115
right: 0;
116116
left: auto;
117117
}
118+
/* wrap theme names that are wider than their fixed-size buttons */
119+
div a.theme-item {
120+
display: inline-flex;
121+
align-items: center;
122+
justify-content: center;
123+
vertical-align: middle;
124+
line-height: 1.2;
125+
}
118126
</style>
119127
</head>
120128
<script nonce="<?=$nonce?>">

‎vendor/hotbox/hotbox.css‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
margin-top: -35px;
2020
border-radius: 100%;
2121
box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
22+
display: flex;
23+
flex-direction: column;
24+
justify-content: center;
25+
padding: 0 6px;
26+
box-sizing: border-box;
2227
}
2328
.hotbox .state .center .label,
2429
.hotbox .state .ring .label,
@@ -31,11 +36,13 @@
3136
}
3237
.hotbox .state .center .label,
3338
.hotbox .state .ring .label {
34-
font-size: 16px;
35-
margin-top: 17px;
39+
font-size: 12px;
3640
color: black;
3741
font-weight: normal;
38-
line-height: 1em;
42+
line-height: 1.1em;
43+
overflow-wrap: anywhere;
44+
white-space: normal;
45+
padding: 0;
3946
}
4047
.hotbox .state .center .key,
4148
.hotbox .state .ring .key {

0 commit comments

Comments
 (0)