Skip to content

Commit

Permalink
An additional styling tweak for Projects Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccaeve committed Aug 5, 2024
1 parent 29b0b59 commit 0bca2a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<div id="projects-react"></div>
</div>
<script type="module">
import { projects } from "/src/main.jsx";
projects(
{ target: document.getElementById("projects-react") },
"testuser1"
);
import { projectsBrowser } from "/src/main.jsx";
projectsBrowser({
apiUrl: "http://localhost:3009/current-projects.json",
target: document.getElementById("projects-react")
});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xras/ui",
"version": "0.1.7",
"version": "0.1.8",
"description": "User interface components for XRAS",
"license": "Apache-2.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/projects-browser/Project.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Project = ({ project }) => {
Abstract
</Accordion.Header>
<Accordion.Body>
<div className={style.abstract}>{ project.abstract }</div>
<div style={{ whiteSpace: "pre-wrap", padding: "5px" }}>{ project.abstract }</div>
</Accordion.Body>
</Accordion.Item>
</Accordion>
Expand Down

0 comments on commit 0bca2a1

Please sign in to comment.