Skip to content

Commit

Permalink
feat: Align headers across gardens (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBrunton authored Oct 1, 2024
1 parent f59638c commit 5e90513
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/garden/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-garden",
"version": "8.0.1",
"version": "8.0.2",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,35 @@ import { memo } from 'react';
import styled from 'styled-components';
import { tokens } from '@equinor/eds-tokens';

const Count = styled.span`
const StyledHeaderContent = styled.div`
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
font-weight: 600;
`;

const StyledCount = styled.h2`
color: ${tokens.colors.text.static_icons__default.hex};
font-weight: 300;
font-size: 0.8rem;
margin-left: 0.8em;
`;

const HeaderView = ({ header }: CustomHeaderView) => {
const StyledHeaderText = styled.h2`
white-space: pre-line;
font-size: 16px;
text-align: center;
`;

const HeaderView = (props: CustomHeaderView) => {
const { header } = props;

return (
<>
{header.name}
<Count>({header.count})</Count>
</>
<StyledHeaderContent>
<StyledHeaderText>{header.name}</StyledHeaderText>
<StyledCount>({header.count})</StyledCount>
</StyledHeaderContent>
);
};

Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-fusion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-fusion",
"version": "9.0.14",
"version": "9.0.15",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down

0 comments on commit 5e90513

Please sign in to comment.