Skip to content

Commit 678bcd4

Browse files
fixed results display
1 parent 660e712 commit 678bcd4

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

css/style.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,10 @@ a.disabled {
621621
}
622622

623623
.results-buttons{
624-
position: absolute;
625624
bottom: 2px;
626625
right:0px;
627-
height:26px;
626+
display: flex;
627+
justify-content: flex-end;
628628
}
629629
#details_view{
630630
position: relative;
@@ -1433,4 +1433,12 @@ a[aria-disabled="true"] {
14331433
display: inline-flex;
14341434
align-items: center;
14351435
justify-content: center;
1436+
}
1437+
1438+
.two-line-ellipsis {
1439+
display: -webkit-box;
1440+
-webkit-line-clamp: 2;
1441+
-webkit-box-orient: vertical;
1442+
overflow: hidden;
1443+
text-overflow: ellipsis;
14361444
}

js/filter_manager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,10 @@ class Filter_Manager {
996996
// show the item in the results
997997
var item_html = '<li class="list-group-item list-group-item-action" onmouseover="filter_manager.show_highlight('+section_id+',\''+item._id+'\');" onmouseout="map_manager.hide_highlight_feature();">'
998998

999-
item_html+='<a href="#" onclick="filter_manager.select_item('+section_id+',\''+item._id+'\')">'+item[section.title_col]+'</a><br/>'
1000-
item_html+="<div class='item_text_sm'>Date:<b> "+item[section.date_col]+"</b></div><div class=\"results-buttons\">"
999+
item_html+='<a href="#" class="two-line-ellipsis" onclick="filter_manager.select_item('+section_id+',\''+item._id+'\')">'+item[section.title_col]+'</a>'
1000+
item_html+="<div class='item_text_sm'>Date:<b> "+item[section.date_col]+"</b></div>"
10011001

1002-
item_html+="<div class='item_text_sm'>Creator:<b> "+item[section.creator_col]+"</b></div>"
1002+
item_html+="<div class='item_text_sm'>Creator:<b> "+item[section.creator_col]+"</b></div> <div class=\"results-buttons\">"
10031003

10041004
item_html+=this.get_add_button(section_id,item._id)
10051005
// if the record has no children

0 commit comments

Comments
 (0)