Skip to content
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
1 change: 1 addition & 0 deletions static/css/components/form.olform.less
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
width: 300px;
}
}

&.books {
.TitleAuthor {
// stylelint-disable-next-line max-nesting-depth
Expand Down
5 changes: 5 additions & 0 deletions static/css/components/jquery.autocomplete.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
.ac_results .ac_language {
font-size: @font-size-title-medium;
color: @black;

@media (pointer: coarse) {
padding: 12px 5px;
min-height: 44px;
}
}
Comment on lines +49 to 53
Copy link

Copilot AI Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The padding is being applied to the inner .ac_language div, but the parent li element (line 22) already has padding: 5px. This could result in inconsistent spacing. Consider applying the touch target styles directly to the li element using a selector like .ac_results li:has(.ac_language) or applying the styles to .ac_results li with the media query and removing padding from the inner div to avoid double padding.

Suggested change
@media (pointer: coarse) {
padding: 12px 5px;
min-height: 44px;
}
}
@media (pointer: coarse) {
// Move touch target padding/min-height to parent li to avoid double padding
// Remove padding from .ac_language
}
// Apply touch target styles to li containing .ac_language for coarse pointers
@media (pointer: coarse) {
.ac_results li:has(.ac_language) {
padding: 12px 5px;
min-height: 44px;
}
}
}

Copilot uses AI. Check for mistakes.

.ac_author {
Expand Down
Loading