mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 16:49:41 +00:00
eb7b2a5c4b
Search every text field with optional filters, keep result selection stable, and expose clearer match context and counts. Cover query parsing, matching, mixed-entry indexing, and the reveal flow.
154 lines
2.5 KiB
SCSS
154 lines
2.5 KiB
SCSS
.entry,
|
|
.empty,
|
|
.error {
|
|
padding-inline: 0.5rem;
|
|
font-size: 1rem;
|
|
// rows grow when a match is shown from a note or custom field
|
|
min-height: 3rem;
|
|
padding-block: 0.35rem;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.entry[data-selected='true'] {
|
|
background-color: $blue-700;
|
|
}
|
|
|
|
.empty {
|
|
color: $label-gray;
|
|
}
|
|
|
|
.more {
|
|
padding-inline: 0.5rem;
|
|
padding-block: 0.75rem;
|
|
font-size: calc(1rem - 2px);
|
|
color: $label-gray;
|
|
border-top: 1px solid $gray-1000;
|
|
text-align: center;
|
|
}
|
|
|
|
.error {
|
|
color: $error-red;
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding-top: 0.75rem;
|
|
}
|
|
|
|
.filterLabel {
|
|
font-size: calc(1rem - 3px);
|
|
color: $label-gray;
|
|
margin-right: 0.15rem;
|
|
}
|
|
|
|
.data {
|
|
display: grid;
|
|
grid-template-areas:
|
|
'index cue'
|
|
'index title'
|
|
'index match';
|
|
column-gap: 1rem;
|
|
grid-template-rows: min-content 1fr;
|
|
min-width: 0;
|
|
|
|
.index {
|
|
grid-area: index;
|
|
// background and text colour come from getAccessibleColour, which keeps the
|
|
// number legible whatever colour the user gave the entry
|
|
border-radius: 2px;
|
|
padding-block: 0.25rem;
|
|
width: 3.5rem;
|
|
align-self: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.title {
|
|
grid-area: title;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.cue {
|
|
grid-area: cue;
|
|
font-size: calc(1rem - 2px);
|
|
color: $label-gray;
|
|
min-height: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.match {
|
|
grid-area: match;
|
|
font-size: calc(1rem - 3px);
|
|
color: $label-gray;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.matchLabel {
|
|
color: $ui-white;
|
|
margin-right: 0.4rem;
|
|
}
|
|
}
|
|
|
|
.footer {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
font-size: calc(1rem - 2px);
|
|
color: $label-gray;
|
|
}
|
|
|
|
.count {
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.go {
|
|
white-space: nowrap;
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
.hints {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem 1rem;
|
|
color: $label-gray;
|
|
font-size: calc(1rem - 3px);
|
|
}
|
|
|
|
.hintItem {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.scrollContainer {
|
|
max-height: 70vh;
|
|
overflow: auto;
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
@media (max-width: 680px) {
|
|
.footer {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.count {
|
|
text-align: left;
|
|
}
|
|
}
|