Skip to content

Commit

Permalink
Merge pull request #56 from Qvant-lab/qtable_multiline-header
Browse files Browse the repository at this point in the history
[QTable] fix sort arrow position, fix word-breaking
  • Loading branch information
cheesytim committed Feb 4, 2021
2 parents 5782b5c + 4deb02a commit 295f2ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/qComponents/QTable/src/QTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
'q-icon-arrow-up': sort.direction !== 'descending',
'q-icon-arrow-down': sort.direction === 'descending'
}"
@click="handleHeaderClick(column)"
/>

<template v-if="group.draggable">
Expand Down
8 changes: 5 additions & 3 deletions src/qComponents/QTable/src/q-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
&-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
align-items: flex-end;
}

&_align-right .q-table__header-cell-wrapper {
Expand All @@ -195,11 +195,13 @@

&_original {
display: -webkit-box;
align-items: center;
align-items: flex-end;
width: auto;
overflow: hidden;
white-space: initial;
word-break: break-word;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: initial;
}
}

Expand Down

0 comments on commit 295f2ef

Please sign in to comment.