Improve tooltip positioning

Signed-off-by: Michael Weimann <michaelw@matrix.org>
This commit is contained in:
Michael Weimann 2022-05-09 15:58:16 +02:00 committed by Michael Weimann
parent 1e73184b78
commit 7ed3089434
16 changed files with 112 additions and 68 deletions

View file

@ -25,7 +25,9 @@ limitations under the License.
z-index: unset;
width: max-content;
left: 72px;
top: 0;
// top edge starting at 50 % of parent - 50 % of itself -> centered vertically
top: 50%;
transform: translateY(-50%);
}
.mx_MiniAvatarUploader_indicator {

View file

@ -70,8 +70,6 @@ limitations under the License.
font-weight: 500;
max-width: 300px;
word-break: break-word;
margin-left: 6px;
margin-right: 6px;
background-color: #21262C; // Same on both themes
color: $accent-fg-color;