Commit 8aa2de4 1 parent e5bf784 commit 8aa2de4 Copy full SHA for 8aa2de4
File tree 1 file changed +12
-1
lines changed
src/rocqproverorg_frontend/pages
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ let display_papers ~(search : string) ~(recommended_papers : Data.Paper.t list)
37
37
</div>
38
38
</div>
39
39
</div>
40
- <details>
40
+ <div>
41
+ <details id="search-details">
41
42
<summary style="font-size: 1.6em; font-weight: normal; float: left; margin-left: 5em; margin-bottom:1em">
42
43
More Papers
43
44
</summary>
@@ -128,6 +129,16 @@ let display_papers ~(search : string) ~(recommended_papers : Data.Paper.t list)
128
129
</div>
129
130
</div>
130
131
</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>
131
142
<div style="clear: both;"></div>
132
143
133
144
You can’t perform that action at this time.
0 commit comments