mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-13 19:46:16 +03:00
fix(console): render FAQ answers in the server HTML (#56535)
This commit is contained in:
committed by
GitHub
Unverified
parent
657c566412
commit
53cd745959
@@ -3,7 +3,7 @@ import { ParentProps } from "solid-js"
|
||||
|
||||
export function Faq(props: ParentProps & { question: string }) {
|
||||
return (
|
||||
<Collapsible data-slot="faq-item">
|
||||
<Collapsible forceMount data-slot="faq-item">
|
||||
<Collapsible.Trigger data-slot="faq-question">
|
||||
<svg
|
||||
data-slot="faq-icon-plus"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
/* Answers stay in the server HTML so they can be read without JavaScript and indexed. */
|
||||
[data-slot="faq-answer"][data-closed] {
|
||||
display: none;
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
@import "./token/space.css";
|
||||
|
||||
@import "./component/button.css";
|
||||
@import "./component/faq.css";
|
||||
|
||||
@import "./reset.css";
|
||||
@import "./base.css";
|
||||
|
||||
Reference in New Issue
Block a user