mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-15 13:04:43 +00:00
Add third slot area to BasicUserCard
This commit is contained in:
parent
784523b8ec
commit
1337e42b2d
1 changed files with 23 additions and 11 deletions
|
@ -7,6 +7,7 @@
|
|||
<user-card-content :user="user" :switcher="false"></user-card-content>
|
||||
</div>
|
||||
<div class="user-card-collapsed-content" v-else>
|
||||
<div class="user-card-primary-secondary-wrapper">
|
||||
<div class="user-card-primary-area">
|
||||
<div :title="user.name" class="user-name">
|
||||
<span v-if="user.name_html" v-html="user.name_html"></span>
|
||||
|
@ -22,6 +23,10 @@
|
|||
<slot name="secondary-area"></slot>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-card-third-area">
|
||||
<slot name="third-area"></slot>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -46,6 +51,9 @@
|
|||
margin-left: 0.7em;
|
||||
text-align: left;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&-primary-secondary-wrapper {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
|
@ -67,9 +75,13 @@
|
|||
flex: none;
|
||||
}
|
||||
|
||||
&-third-area {
|
||||
margin-top: .2em;
|
||||
}
|
||||
|
||||
&-expanded-content {
|
||||
flex: 1;
|
||||
margin: 0.2em 0 0 0.7em;
|
||||
margin-left: 0.7em;
|
||||
border-radius: $fallback--panelRadius;
|
||||
border-radius: var(--panelRadius, $fallback--panelRadius);
|
||||
border-style: solid;
|
||||
|
|
Loading…
Reference in a new issue