Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix filter input appearance in item lists in dialogs #1671

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- Update item lists check for large images when toggling recurse ([#1654](../../pull/1654))
- Support named item lists ([#1665](../../pull/1665))
- Add options to group within item lists ([#1666](../../pull/1666))
- Make the filter field in item lists wider ([#1669](../../pull/1669))
- Make the filter field in item lists wider ([#1669](../../pull/1669), [#1671](../../pull/1671))
- Add a navigate option to item lists ([#1659](../../pull/1659))

### Changes
Expand Down
30 changes: 19 additions & 11 deletions girder/girder_large_image/web_client/stylesheets/itemList.styl
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,6 @@ ul.g-item-list[metadata-columns="0"]

.li-item-list-filter
padding-left 12px
flex 1
display flex
align-items baseline

input
flex 1

.li-item-list-filter-clear
cursor pointer
margin-right 20px

@media (min-width 768px)
.modal-dialog.li-item-list-dialog
Expand All @@ -145,9 +135,27 @@ ul.g-item-list[metadata-columns="0"]
padding-left 5px
font-weight normal

.g-hierarchy-widget .g-hierarchy-actions-header
.g-hierarchy-widget .g-hierarchy-actions-header.li-item-list-filter-parent
display flex
align-items baseline

button.g-checked-actions-button
float unset

.li-item-list-filter
flex 1
display flex
align-items baseline

input
flex 1

.li-item-list-filter-clear
cursor pointer
margin-right 20px

.g-hierarchy-widget .g-hierarchy-breadcrumb-bar ol.breadcrumb.li-item-list-filter-parent
white-space wrap

.li-item-list-filter
white-space nowrap
1 change: 1 addition & 0 deletions girder/girder_large_image/web_client/views/itemList.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ wrap(ItemListWidget, 'render', function (render) {
base = root.find('.g-hierarchy-breadcrumb-bar>.breadcrumb>div').eq(0);
}
if (base.length) {
base.parent().addClass('li-item-list-filter-parent');
base[func]('<span class="li-item-list-filter">Filter:&nbsp;<input class="li-item-list-filter-input" title="' +
'All specified terms must be included. ' +
'Surround with single quotes to include spaces, double quotes for exact value match. ' +
Expand Down