mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #29345 from nextcloud/fix/profile-preview-card
This commit is contained in:
commit
8a511de8cb
3 changed files with 35 additions and 45 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -32,8 +32,7 @@
|
|||
:show-user-status="true"
|
||||
:show-user-status-compact="false"
|
||||
:disable-menu="true"
|
||||
:disable-tooltip="true"
|
||||
@click.native.prevent.stop="openStatusModal" />
|
||||
:disable-tooltip="true" />
|
||||
<div class="preview-card__header">
|
||||
<span>{{ displayName }}</span>
|
||||
</div>
|
||||
|
|
@ -57,11 +56,11 @@ export default {
|
|||
},
|
||||
|
||||
props: {
|
||||
organisation: {
|
||||
displayName: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
displayName: {
|
||||
organisation: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
|
|
@ -75,11 +74,6 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
disabled() {
|
||||
return !this.profileEnabled
|
||||
|
|
@ -95,9 +89,6 @@ export default {
|
|||
return null
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -142,51 +133,50 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
&__header {
|
||||
position: relative !important;
|
||||
width: auto !important;
|
||||
height: 70px !important;
|
||||
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0 !important;
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 78px;
|
||||
color: var(--color-primary-text);
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&__header,
|
||||
&__footer {
|
||||
position: relative;
|
||||
width: auto;
|
||||
height: 46px;
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 78px;
|
||||
color: var(--color-text-maxcontrast);
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
margin-top: 4px;
|
||||
line-height: 1.3;
|
||||
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
word-break: break-all;
|
||||
|
||||
@supports (-webkit-line-clamp: 2) {
|
||||
overflow: hidden;
|
||||
white-space: initial;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__header {
|
||||
height: 70px;
|
||||
border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
|
||||
|
||||
span {
|
||||
bottom: 0;
|
||||
color: var(--color-primary-text);
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin: 0 4px 8px 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__footer {
|
||||
height: 46px;
|
||||
|
||||
span {
|
||||
top: 0;
|
||||
color: var(--color-text-maxcontrast);
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
margin: 4px 4px 0 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue