Skip to content

Commit

Permalink
fix: padding of info panel content (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster authored Jul 10, 2024
1 parent c4dbb37 commit 5319564
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .infra/rdev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stack:
services:
explorer:
image:
tag: sha-7b1d59e2
tag: sha-8128ec3a
replicaCount: 1
env:
# env vars common to all deployment stages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ const buildDatasetMetadataViews = (

const InfoFormat = React.memo<Props>(({ datasetMetadata, allSingleValues }) => (
<div className={Classes.DRAWER_BODY}>
<div className={Classes.DIALOG_BODY}>
<div className={Classes.DIALOG_BODY} style={{ margin: "12px" }}>
<H3>{datasetMetadata?.collection_name || "Collection"}</H3>
{datasetMetadata && <p>{datasetMetadata.collection_description}</p>}
{renderCollectionLinks(datasetMetadata)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Icon } from "@blueprintjs/core";

import * as globals from "../../../../globals";
import * as styles from "../../util";
import { gray100, gray500 } from "../../../theme";
import { gray100, gray500, spacesM } from "../../../theme";

export const GeneInfoWrapper = styled.div`
display: flex;
Expand All @@ -21,14 +21,11 @@ export const GeneInfoWrapper = styled.div`

export const GeneInfoContainer = styled.div`
width: ${styles.width + styles.margin.left + styles.margin.right}px;
height: "auto";
height: "50%";
`;

export const GeneInfoEmpty = styled.div`
margin-top: ${styles.margin.top}px;
margin-left: ${styles.margin.left}px;
margin-right: ${styles.margin.right}px;
margin-bottom: ${styles.margin.bottom}px;
margin: ${spacesM}px;
`;

export const GeneSymbol = styled.h1`
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/geneExpression/infoPanel/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export const InfoPanelWrapper = styled.div<InfoPanelWrapperProps>`
overflow: hidden;
position: ${(props) => (props.isMinimized ? "absolute" : "relative")};
bottom: ${(props) => (props.isMinimized ? "0" : "auto")};
height: ${(props) => (props.isMinimized ? "40px" : "auto")};
height: ${(props) => (props.isMinimized ? "40px" : "50%")};
`;

export const InfoPanelContent = styled.div<InfoPanelWrapperProps>`
width: 100%;
padding: 30px 0px 0px 0px;
padding-top: 30px;
position: relative;
overflow-y: auto;
max-height: ${(props) => (props.isMinimized ? "0" : "400px")};
min-height: ${(props) => (props.isMinimized ? "0" : "50%")};
`;

export const InfoPanelHeader = styled.div`
Expand All @@ -33,7 +33,7 @@ export const InfoPanelHeader = styled.div`
width: 100%;
border-top: 1px solid ${gray300};
border-bottom: 1px solid ${gray300};
padding: 16px 0px 8px 10px;
padding: 17px 0px 8px 10px;
height: 35px;
position: absolute;
background: white;
Expand Down

0 comments on commit 5319564

Please sign in to comment.