File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
packages/tdb-documents-ui/sandbox Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ If you dont want to use themes at an application level then import CSS to make t
182182#### Light mode
183183```
184184import { FrameViewer } from '@terminusdb/terminusdb-documents-ui'
185- import "terminusdb__light.css"
185+ import "@terminusdb/terminusdb-documents-ui/dist/css/ terminusdb__light.css"
186186return <FrameViewer
187187 frame={frame} // frames
188188 mode={"View"} // mode in which to display the form
@@ -194,7 +194,7 @@ return <FrameViewer
194194#### Dark mode
195195```
196196import { FrameViewer } from '@terminusdb/terminusdb-documents-ui'
197- import "terminusdb__darkly.css"
197+ import "@terminusdb/terminusdb-documents-ui/dist/css/ terminusdb__darkly.css"
198198return <FrameViewer
199199 frame={frame} // frames
200200 mode={"View"} // mode in which to display the form
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ export const SubmittedData = () => {
1414 placeholder = { data }
1515 viewOnly = { true }
1616 height = { "550px" }
17- width = { "500px " }
17+ width = { "380px " }
1818 />
1919}
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ import Button from "react-bootstrap/Button"
77import { Stack } from "react-bootstrap"
88import { Search } from "./SearchComponent"
99
10- //import "../../src/css/terminusdb__light"
11- //import "../../src/css/terminusdb__darkly"
1210
11+ //import '@terminusdb/terminusdb-documents-ui/dist/css/terminusdb__darkly.css'
12+ //import '@terminusdb/terminusdb-documents-ui/dist/css/terminusdb__light.css'
13+ //import '../../src/css/terminusdb__darkly.css'
14+ //import '../../src/css/terminusdb__light.css'
1315
1416export const View = ( ) => {
1517
@@ -39,8 +41,8 @@ export const View = () => {
3941 formData = { getFormData ( mode , type , setData ) }
4042 onTraverse = { handleTraverse }
4143 onSelect = { < Search /> }
42- // theme="darkly"
43- showThemeSelector = { true }
44+ theme = "darkly"
45+ // showThemeSelector={true}
4446 onSubmit = { handleSubmit }
4547 type = { type }
4648 />
You can’t perform that action at this time.
0 commit comments