user card tweak

This commit is contained in:
qbism 2024-01-26 23:20:17 -05:00
parent cf5d3819a8
commit c675f62e3a
4 changed files with 10 additions and 8 deletions

View file

@ -57,7 +57,6 @@ export default {
style () { style () {
return { return {
backgroundImage: [ backgroundImage: [
`linear-gradient(to bottom, var(--profileTint), var(--profileTint))`,
`url(${this.user.cover_photo})` `url(${this.user.cover_photo})`
].join(', ') ].join(', ')
} }

View file

@ -35,12 +35,14 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
mask: linear-gradient(to top, white, transparent) bottom no-repeat, height: 200px;
linear-gradient(to top, white, white); overflow: clip;
background-position-y: center;
// Autoprefixer seem to ignore this one, and also syntax is different // Autoprefixer seem to ignore this one, and also syntax is different
-webkit-mask-composite: xor; -webkit-mask-composite: xor;
mask-composite: exclude; mask-composite: exclude;
background-size: cover; background-size: cover;
background-repeat-y: no-repeat;
mask-size: 100% 60%; mask-size: 100% 60%;
border-top-left-radius: calc(var(--panelRadius) - 1px); border-top-left-radius: calc(var(--panelRadius) - 1px);
border-top-right-radius: calc(var(--panelRadius) - 1px); border-top-right-radius: calc(var(--panelRadius) - 1px);
@ -97,14 +99,14 @@
.user-info { .user-info {
color: $fallback--lightText; color: $fallback--lightText;
color: var(--lightText, $fallback--lightText); color: var(--lightText, $fallback--lightText);
padding: 0 26px; padding: 150px 26px 0; //qb: move below background
.container { .container {
min-width: 0; min-width: 0;
padding: 16px 0 6px; padding: 16px 6px 6px;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
max-height: 56px; max-height: 92px; //qb: for bigger avatar
> * { > * {
min-width: 0; min-width: 0;
@ -116,8 +118,8 @@
--_avatarShadowInset: var(--avatarShadowInset); --_avatarShadowInset: var(--avatarShadowInset);
flex: 1 0 100%; flex: 1 0 100%;
width: 56px; width: 92px;
height: 56px; height: 92px;
object-fit: cover; object-fit: cover;
} }
} }
@ -167,6 +169,7 @@
.user-summary { .user-summary {
display: block; display: block;
margin-left: 0.6em; margin-left: 0.6em;
margin-top: 1.5em;
text-align: left; text-align: left;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;

Binary file not shown.

Binary file not shown.