Fix vertical alignment of custom emojis in display name
This commit is contained in:
parent
530ba50e09
commit
0c5d03044e
4 changed files with 18 additions and 14 deletions
|
@ -607,11 +607,14 @@ async function onMintToken() {
|
||||||
}
|
}
|
||||||
|
|
||||||
.display-name-link {
|
.display-name-link {
|
||||||
color: $text-color;
|
|
||||||
font-weight: bold;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
.display-name {
|
||||||
|
color: $text-color;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.actor-address {
|
.actor-address {
|
||||||
|
|
|
@ -84,8 +84,6 @@ function getContent(): string {
|
||||||
@import "../styles/mixins";
|
@import "../styles/mixins";
|
||||||
|
|
||||||
.post-content {
|
.post-content {
|
||||||
@include ugc-emoji;
|
|
||||||
|
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
padding: $block-inner-padding;
|
padding: $block-inner-padding;
|
||||||
|
@ -162,6 +160,10 @@ function getContent(): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.emoji) {
|
:deep(.emoji) {
|
||||||
|
height: 24px;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
width: 24px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
height: 48px;
|
height: 48px;
|
||||||
transition: 100ms linear;
|
transition: 100ms linear;
|
||||||
|
|
|
@ -23,10 +23,17 @@ function getDisplayNameHtml(): string {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "../styles/mixins";
|
|
||||||
@import "../styles/theme";
|
@import "../styles/theme";
|
||||||
|
|
||||||
|
$display-name-line-height: 1.4;
|
||||||
|
|
||||||
.display-name {
|
.display-name {
|
||||||
@include ugc-emoji;
|
line-height: $display-name-line-height;
|
||||||
|
|
||||||
|
:deep(.emoji) {
|
||||||
|
height: $display-name-line-height * 0.8em;
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
width: $display-name-line-height * 0.8em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -158,11 +158,3 @@
|
||||||
color: $error-color;
|
color: $error-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin ugc-emoji {
|
|
||||||
:deep(.emoji) {
|
|
||||||
height: 24px;
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
width: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue