@youtyan/code-viewer 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app.js +2 -0
- package/web/style.css +16 -1
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -16616,6 +16616,8 @@ ${frontmatter.yaml}
|
|
|
16616
16616
|
document.body.classList.toggle("gdp-repo-page", STATE.route.screen === "repo");
|
|
16617
16617
|
document.body.classList.toggle("gdp-help-page", STATE.route.screen === "help");
|
|
16618
16618
|
document.body.classList.toggle("gdp-history-page", STATE.route.screen === "history");
|
|
16619
|
+
placeSidebarToggle();
|
|
16620
|
+
syncSidebarHeaderHeight();
|
|
16619
16621
|
const historyPanel = $("#history-panel");
|
|
16620
16622
|
if (historyPanel)
|
|
16621
16623
|
historyPanel.hidden = STATE.route.screen !== "history";
|
package/web/style.css
CHANGED
|
@@ -3510,12 +3510,27 @@ body.gdp-file-detail-page.gdp-repo-blob-page .sb-view-seg {
|
|
|
3510
3510
|
body.gdp-repo-page .sb-filter-wrap,
|
|
3511
3511
|
body.gdp-file-detail-page.gdp-repo-blob-page .sb-filter-wrap {
|
|
3512
3512
|
grid-area: filter;
|
|
3513
|
-
position:
|
|
3513
|
+
position: relative;
|
|
3514
|
+
/* The base rule is sticky with top: var(--sidebar-head-h); keeping that
|
|
3515
|
+
offset while relative shifts the filter below the .sb-head grid. */
|
|
3516
|
+
top: 0;
|
|
3514
3517
|
width: 100%;
|
|
3515
3518
|
margin: 0;
|
|
3516
3519
|
padding: 6px 0 0;
|
|
3517
3520
|
border-bottom: 0;
|
|
3518
3521
|
}
|
|
3522
|
+
/* The magnifier glyph offsets assume the default 7px 12px wrap padding;
|
|
3523
|
+
the grid layout drops the horizontal padding, so shift it back in. */
|
|
3524
|
+
body.gdp-repo-page .sb-filter-wrap::before,
|
|
3525
|
+
body.gdp-file-detail-page.gdp-repo-blob-page .sb-filter-wrap::before {
|
|
3526
|
+
left: 11px;
|
|
3527
|
+
top: 16px;
|
|
3528
|
+
}
|
|
3529
|
+
body.gdp-repo-page .sb-filter-wrap::after,
|
|
3530
|
+
body.gdp-file-detail-page.gdp-repo-blob-page .sb-filter-wrap::after {
|
|
3531
|
+
left: 22px;
|
|
3532
|
+
top: 27px;
|
|
3533
|
+
}
|
|
3519
3534
|
body.gdp-file-detail-page {
|
|
3520
3535
|
--chrome-h: var(--global-header-h);
|
|
3521
3536
|
}
|