Skip to content

Commit

Permalink
Bold first line
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Ambrosini <marcoambrosini@icloud.com>
  • Loading branch information
marcoambrosini committed Aug 19, 2022
1 parent 83f29e1 commit 8c0cccb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
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 @@ -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

0 comments on commit 8c0cccb

Please sign in to comment.