Skip to content

Commit

Permalink
fix(NcListItem): decrease line height from 1.5 to 1.2
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Aug 15, 2024
1 parent 7043739 commit 8ce30cc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import LoadingPlaceholder from '../../UIShared/LoadingPlaceholder.vue'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
/* Consider:
* 45 = 2lh - 2 lines of text
* 36 = 2 * 1.2 * var(--default-font-size) - two lines of text
* 8 = 2 * var(--default-grid-baseline) - item padding
* 4 = var(--default-grid-baseline) - item outline (collapsed)
*/
const CONVERSATION_ITEM_SIZE = 61
const CONVERSATION_ITEM_SIZE = 48
export default {
name: 'ConversationsListVirtual',
Expand Down
3 changes: 3 additions & 0 deletions src/components/LeftSidebar/InvitationHandler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,14 @@ export default {
padding-left: 4px;
&__name {
line-height: 1.2;
font-weight: bold;
color: var(--color-main-text);
}
&__subname {
// Overwrite NcRichText styles
line-height: 1.2 !important;
color: var(--color-text-maxcontrast);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,9 @@ export default {
padding: 0 !important;
}
// Overwrite NcListItem styles
:deep(.list-item) {
line-height: 1.2;
overflow: hidden;
outline-offset: -2px;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/RightSidebar/Participants/Participant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ export default {
.participant {
// Overwrite NcListItem styles
:deep(.list-item) {
line-height: 1.2;
overflow: hidden;
outline-offset: -2px;
cursor: default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ import LoadingPlaceholder from '../../UIShared/LoadingPlaceholder.vue'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
const PARTICIPANT_ITEM_SIZE = 64
/* Consider:
* 36 = 2 * 1.2 * var(--default-font-size) - two lines of text
* 8 = 2 * var(--default-grid-baseline) - item padding
* 4 = var(--default-grid-baseline) - item outline (collapsed)
*/
const PARTICIPANT_ITEM_SIZE = 48
export default {
name: 'ParticipantsListVirtual',
Expand Down

0 comments on commit 8ce30cc

Please sign in to comment.