Skip to content

Commit

Permalink
fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Woozl committed Jun 28, 2023
1 parent 168ec4c commit 6873715
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/pages/answer/kgBubble/KgBubble.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ export default function KgBubble({
return (
<>
{nodes.length > 0 && (
<div style={{ display: 'flex' }}>
<div style={{
display: 'flex',
width: '100%',
gap: '10px',
margin: '10px',
}}
>
<Paper id="kgBubbleContainer" elevation={3}>
<h5 className="cardLabel">Knowledge Graph Bubble</h5>
{nodes.length > defaultTrimNum && (
Expand Down
6 changes: 3 additions & 3 deletions src/pages/answer/kgBubble/kgBubble.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#kgBubbleContainer {
flex: 1;
flex: 1 0 0;
height: 30rem;
margin: 10px;
position: relative;
overflow: hidden;
}
#legendContainer {
height: 30rem;
margin: 10px;
overflow-x: auto;
}
.legendHeader {
padding: 5px 0px 0px 10px;
Expand Down

0 comments on commit 6873715

Please sign in to comment.