Move follow button + always show label

This commit is contained in:
Freeplay 2023-05-29 09:40:00 -04:00
parent fca3c6f85e
commit 69852b8a05
2 changed files with 33 additions and 40 deletions

View File

@ -134,20 +134,19 @@
</div> </div>
<div class="follow-container"> <div class="follow-container">
<div class="actions"> <div class="actions">
<MkFollowButton
:user="user"
@refresh="emit('refresh')"
:inline="true"
:transparent="false"
:full="!narrow"
class="koudoku"
/>
<button class="menu _button" @click="menu"> <button class="menu _button" @click="menu">
<i <i
class="ph-dots-three-outline ph-bold ph-lg" class="ph-dots-three-outline ph-bold ph-lg"
></i> ></i>
</button> </button>
<!-- <MkFollowButton v-else-if="$i == null" :user="user" :remote="true" :inline="true" :transparent="false" :full="true" class="koudoku"/> --> <MkFollowButton
:user="user"
@refresh="emit('refresh')"
:inline="true"
:transparent="false"
:full="true"
class="koudoku"
/>
</div> </div>
</div> </div>
<div class="description"> <div class="description">
@ -490,29 +489,6 @@ onUnmounted(() => {
border-radius: 6px; border-radius: 6px;
} }
> .actions {
position: absolute;
top: 12px;
right: 12px;
padding: 8px;
border-radius: 24px;
> .menu {
vertical-align: bottom;
height: 31px;
width: 31px;
color: #fff;
text-shadow: 0 0 8px var(--shadow);
font-size: 16px;
}
> .koudoku {
margin-left: 4px;
width: 31px;
vertical-align: bottom;
}
}
> .title { > .title {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -581,22 +557,23 @@ onUnmounted(() => {
> .actions { > .actions {
position: absolute; position: absolute;
top: 12px; top: 6px;
right: 12px; right: 12px;
padding: 8px; padding: 8px;
border-radius: 24px; border-radius: 24px;
display: flex;
justify-content: center;
align-items: center;
> .menu { > .menu {
vertical-align: bottom;
height: 31px; height: 31px;
width: 31px; width: 31px;
color: --fg; color: --fg;
font-size: 16px; font-size: 16px;
} }
> .koudoku { > :deep(.follow-button) {
margin-left: 4px; margin-left: 8px;
vertical-align: bottom;
} }
} }
@ -797,6 +774,13 @@ onUnmounted(() => {
> .title { > .title {
display: block; display: block;
border-bottom: 0;
padding-bottom: 0;
> .bottom {
> .username {
margin-right: 0;
}
}
} }
> .avatar { > .avatar {
@ -822,15 +806,19 @@ onUnmounted(() => {
} }
> .description { > .description {
top: -55px; top: 0;
position: relative; position: relative;
} }
> .follow-container { > .follow-container {
overflow: visible !important; overflow: visible !important;
display: flex;
justify-content: center;
height: auto;
border-bottom: 1px solid var(--divider);
padding-bottom: 5px;
> .actions { > .actions {
top: -110px; position: static;
right: 0px;
} }
} }
} }

View File

@ -212,6 +212,11 @@ hr {
opacity: 0.5; opacity: 0.5;
cursor: default; cursor: default;
} }
> i:only-child {
display: block;
margin: auto;
}
} }
._buttonPrimary { ._buttonPrimary {