Skip to content

Commit

Permalink
Merge pull request #513 from Neriderc/wrap-names
Browse files Browse the repository at this point in the history
Restore line wrap to start and stop individuals list
  • Loading branch information
Neriderc authored Oct 30, 2024
2 parents e8e46c1 + fe0d518 commit 0cd2fe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions resources/css/gvexport.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,24 +258,16 @@
display: flex;
}

.indi_list_item {
min-height: 42px;
line-height: 36px;
.list-item-highlight {
width: 80%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.list_item_skinny {
width: 80% !important;
min-height: 40px;
}

.list_item_content {
width: 95%;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.options-panel-background {
Expand Down
2 changes: 1 addition & 1 deletion resources/javascript/MainPage/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ const Form = {
listItemIndi.innerHTML = contents + "<div class=\"saved-settings-ellipsis\" onclick=\"Form.indiList.removeItem(event, this.parentElement.parentElement" + ", '" + otherXrefId + "')\"><a class='pointer'>×</a></div>";
newListItem.appendChild(listItemIndi);
if (colour !== '') {
listItemIndi.setAttribute('class', 'list_item_skinny list_item_content');
listItemIndi.setAttribute('class', 'list-item-highlight');
let picker = `<input type="color" class="highlight_picker" data-xref="${xref}" value="${colour}">`;
newListItem.innerHTML = newListItem.innerHTML + picker;
newListItem.querySelector('.highlight_picker')?.addEventListener('change', Form.indiList.updateHighlightColour);
Expand Down

0 comments on commit 0cd2fe8

Please sign in to comment.