Skip to content

Commit

Permalink
[Nav Results Modern][Fixed] Output virtual box below category
Browse files Browse the repository at this point in the history
before category boxes were not clickable if too close to output titles
  • Loading branch information
nguyen-v committed Jan 10, 2025
1 parent 3d7549d commit f94aa24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kibot/out_navigate_results_modern.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@
/* Category boxes (folder) -------------------------------------------------- */
.category-box {
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
Expand Down Expand Up @@ -552,6 +553,7 @@
/* Output boxes (files) ----------------------------------------------------- */
.output-box {
z-index: 999;
background-color: var(--dark-bg-color-banner);
border: 1px solid var(--dark-bg-color-banner);
border-radius: 8px;
Expand All @@ -571,6 +573,11 @@
position: relative;
padding-top: var(--top-menu-height, 80px);
margin-top: calc(-1 * var(--top-menu-height, 80px));
pointer-events: none; /* Make it non-interactive */
}
.output-virtual-box > * {
pointer-events: auto; /* Allow its children to remain interactive */
}
/* Some files (e.g. PDF, PNG) have wider output boxes */
Expand Down

0 comments on commit f94aa24

Please sign in to comment.