Skip to content

Commit 9d03620

Browse files
committed
Update research interests
1 parent 10b9c0a commit 9d03620

4 files changed

Lines changed: 31 additions & 4 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"workspace": {
3+
"root": "./"
4+
}
5+
}

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ footer:
115115
include:
116116
- .htaccess
117117
- _pages
118+
- .well-known
118119
exclude:
119120
- "*.sublime-project"
120121
- "*.sublime-workspace"

_layouts/research-interests.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,16 @@ <h2 class="s-title">The AI<br>Database System.</h2>
245245
d.classList.toggle('active', (i + 1) === activeStep);
246246
});
247247
if (activeStep >= 5) alignConnector();
248+
249+
/* Mobile: reset diagram panel scroll to 0 so the top-most lit element is
250+
always visible. Collapsed elements (max-height:0) occupy no space, so
251+
the new element for each step naturally rises to position 0 — no offset
252+
calculation needed. Runs after class changes so the element is already
253+
expanding when the panel snaps to top. */
254+
if (window.innerWidth <= 900) {
255+
var panel = document.querySelector('.ri-diagram-panel');
256+
if (panel) panel.scrollTop = 0;
257+
}
248258
}
249259

250260
/* On mobile the sticky diagram panel occupies the top 40vh, so we tell

_sass/custom/_research-interests.scss

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,24 @@ html:has(body.page--research-interests) {
405405
.ri-diagram-panel {
406406
position: sticky;
407407
top: 0;
408-
height: 40vh;
408+
height: 45vh;
409409
z-index: 10;
410-
padding: 1.25rem 1rem;
410+
padding: 1rem 1rem 0;
411411
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
412+
413+
/* KEY FIX: top-align so as more elements appear they stack from the top,
414+
and scroll internally so the panel never clips the relevant element */
415+
align-items: flex-start;
416+
overflow-y: auto;
417+
overflow-x: hidden;
418+
scrollbar-width: none; /* Firefox */
419+
&::-webkit-scrollbar { display: none; } /* Chrome/Safari */
412420
}
413421

414-
.arch-diagram { max-width: 300px; }
422+
.arch-diagram {
423+
max-width: 300px;
424+
padding-bottom: 1rem; /* breathing room at bottom of scroll area */
425+
}
415426

416427
/* Slightly smaller chips to fit the smaller panel */
417428
.arch-agents .a-pill { font-size: 0.7em; padding: 0.22rem 0.55rem; }
@@ -420,7 +431,7 @@ html:has(body.page--research-interests) {
420431
.graph-svg { margin-top: 0.4rem; }
421432

422433
.ri-step {
423-
min-height: 60vh; /* each step fills the remaining 60vh so observer fires */
434+
min-height: 70vh; /* taller sections give the observer more time to fire */
424435
padding: 3rem 1.5rem;
425436
border-left: none;
426437

0 commit comments

Comments
 (0)