Project

General

Profile

Patch #43641 » support-responsive-mode.diff

Mizuki ISHIKAWA, 2026-03-24 05:48

View differences:

app/assets/stylesheets/responsive.css
inset-block-start: 64px;
}
/* Offset sticky issue list headers below the fixed mobile header. */
table.list.sticky thead {
inset-block-start: 64px;
}
/* Prevent content from being hidden behind #sticky-issue-header and project-jump when scrolling via anchor links. */
.controller-issues.action-show div.wiki a[name],
.controller-issues.action-show #history div[id^="note-"],
app/javascript/controllers/sticky_table_header_controller.js
this.stickyValue = false
}
})
}, {
rootMargin: `-${this.stickyTopOffset}px 0px 0px 0px`
})
this.resizeObserver = new ResizeObserver(() => {
......
}
syncWidth() {
const headRect = this.headTarget.getBoundingClientRect()
this.stickyHeader.style.insetInlineStart = `${headRect.left}px`
this.stickyHeader.style.width = window.getComputedStyle(this.headTarget).width
this.bodyColumns.forEach((col, i) => {
const style = window.getComputedStyle(col)
......
}
get isIntersecting() {
return this.headTarget.getBoundingClientRect().top > 0
return this.headTarget.getBoundingClientRect().top > this.stickyTopOffset
}
get isHeaderOverflowX() {
return this.element.scrollWidth > this.element.clientWidth
}
get stickyTopOffset() {
this.prepare()
const top = window.getComputedStyle(this.stickyHeader).top
return top === "auto" ? 0 : parseFloat(top)
}
}
(4-4/8)