Fix row heights with sticky column

This commit is contained in:
Andrew Kingston 2023-04-17 13:53:24 +01:00
parent c4125b5a93
commit d38cf2d7f0
2 changed files with 11 additions and 4 deletions

View File

@ -142,7 +142,7 @@
if (candidateIndex == null) {
candidateIndex = 0
} else {
candidateIndex = Math.min(results.length - 1, candidateIndex + 1)
candidateIndex = Math.min(searchResults.length - 1, candidateIndex + 1)
}
} else if (e.key === "ArrowUp") {
// Select previous result on up array
@ -154,8 +154,8 @@
}
} else if (e.key === "Enter") {
// Toggle the highlighted result on enter press
if (candidateIndex != null && results[candidateIndex] != null) {
toggleRow(results[candidateIndex])
if (candidateIndex != null && searchResults[candidateIndex] != null) {
toggleRow(searchResults[candidateIndex])
}
}
return true
@ -289,7 +289,7 @@
min-height: var(--row-height);
max-height: var(--row-height);
overflow: hidden;
--max-relationship-height: 92px;
--max-relationship-height: 120px;
}
.wrapper.focused {
position: absolute;

View File

@ -220,6 +220,13 @@
justify-content: center;
align-items: center;
}
.checkbox :global(.spectrum-Checkbox) {
min-height: 0;
height: 20px;
}
.checkbox :global(.spectrum-Checkbox-box) {
margin: 3px 0 0 0;
}
.number {
color: var(--spectrum-global-color-gray-500);
}