Skip to content

Commit 5af7979

Browse files
fix unfolding search
1 parent b75cd12 commit 5af7979

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/rocqproverorg_frontend/pages/papers.eml

+12-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ let display_papers ~(search : string) ~(recommended_papers : Data.Paper.t list)
3737
</div>
3838
</div>
3939
</div>
40-
<details>
40+
<div>
41+
<details id="search-details">
4142
<summary style="font-size: 1.6em; font-weight: normal; float: left; margin-left: 5em; margin-bottom:1em">
4243
More Papers
4344
</summary>
@@ -128,6 +129,16 @@ let display_papers ~(search : string) ~(recommended_papers : Data.Paper.t list)
128129
</div>
129130
</div>
130131
</details>
132+
133+
<script>
134+
// Check if there's a query string in the URL
135+
const params = new URLSearchParams(window.location.search);
136+
if (params.has('q')) {
137+
document.getElementById('search-details').setAttribute('open', 'true');
138+
}
139+
</script>
140+
141+
</div>
131142
<div style="clear: both;"></div>
132143

133144

0 commit comments

Comments
 (0)