Skip to content

Commit

Permalink
Merge pull request #5400 from nextcloud-libraries/fix/5209-make-listi…
Browse files Browse the repository at this point in the history
…tem-bold-again

fix(NcListItem): bring back old styling for two-line list items
  • Loading branch information
Antreesy committed Mar 12, 2024
2 parents bf910e3 + 510a18b commit 1bb6ff4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ul>
<NcListItem
:name="'This is an active element with highlighted counter'"
:bold="false"
:bold="true"
:active="true"
:details="'1h'"
:counter-number="44"
Expand Down Expand Up @@ -115,7 +115,7 @@
</NcListItem>
<NcListItem
:name="'Name of the element with highlighted counter'"
:bold="false"
:bold="true"
:force-display-actions="true"
:details="'1h'"
:counter-number="44"
Expand Down Expand Up @@ -390,7 +390,7 @@
</div>
<div v-if="hasSubname"
class="list-item-content__subname"
:class="{'line-two--bold': bold}">
:class="{'list-item-content__subname--bold': bold}">
<!-- @slot Slot for the second line of the component -->
<slot name="subname" />
</div>
Expand Down Expand Up @@ -766,12 +766,15 @@ export default {
min-width: 100px;
max-width: 300px;
flex: 1 1 10%;
text-overflow: ellipsis;
font-weight: bold;
}
.list-item-content__subname {
flex: 1 0;
min-width: 0;
&--bold {
font-weight: bold;
}
}
// NcListItem
Expand Down Expand Up @@ -814,8 +817,8 @@ export default {
}
.list-item-content__details {
display: flex;
flex-direction: row;
justify-content: end;
flex-direction: column;
align-items: end;
}
&--one-line {
padding: 0 9px;
Expand All @@ -827,8 +830,8 @@ export default {
min-width: 0;
}
.list-item-content__details {
display: flex;
flex-direction: row;
align-items: unset;
justify-content: end;
}
}
Expand Down Expand Up @@ -873,7 +876,7 @@ export default {
&-details {
&__details {
color: var(--color-text-maxcontrast);
margin: 0 9px;
margin: 0 9px !important;
font-weight: normal;
}
&__extra {
Expand Down

0 comments on commit 1bb6ff4

Please sign in to comment.