Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListItem Design update #3055

Merged
merged 3 commits into from
Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 7 additions & 10 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<NcListItem
:title="'Title of the element'"
:bold="false"
:details="'One hour ago'"
:details="'1h'"
:counter-number="44"
counterType="highlighted">
<template #icon>
Expand Down Expand Up @@ -54,7 +54,7 @@
:title="'Title of the element'"
:bold="false"
:force-display-actions="true"
:details="'One hour ago'"
:details="'1h'"
:counter-number="44"
counterType="highlighted">
<template #icon>
Expand Down Expand Up @@ -105,7 +105,7 @@
<NcListItem
:title="'Title of the element'"
:bold="false"
:details="'One hour ago'">
:details="'1h'">
<template #icon>
<NcAvatar :size="44" user="janedoe" display-name="Jane Doe" />
</template>
Expand Down Expand Up @@ -215,8 +215,7 @@
:class="{ 'list-item-content__main--oneline': oneLine }">

<!-- First line, title and details -->
<div class="line-one"
:class="{'line-one--bold': bold}">
<div class="line-one">
<span class="line-one__title">
{{ title }}
</span>
Expand Down Expand Up @@ -342,7 +341,7 @@ export default {
},

/**
* Make title and subtitle bold
* Make subtitle bold
*/
bold: {
type: Boolean,
Expand Down Expand Up @@ -571,7 +570,7 @@ export default {
flex: 0 0 auto;
justify-content: flex-start;
padding: 8px;
border-radius: 16px;
border-radius: var(--border-radius-pill);
margin: 2px 0;
width: 100%;
cursor: pointer;
Expand Down Expand Up @@ -638,16 +637,14 @@ export default {
white-space: nowrap;
margin: 0 auto 0 0;
overflow: hidden;
&--bold {
font-weight: bold;
}

&__title {
overflow: hidden;
flex-grow: 1;
cursor: pointer;
text-overflow: ellipsis;
color: var(--color-main-text);
font-weight: bold;
}

&__details {
Expand Down