Skip to content

Commit 9bf571a

Browse files
authored
Merge branch 'master' into M-DEV-1/add-mobile-support-to-infoicon
2 parents 9935463 + 3212903 commit 9bf571a

3 files changed

Lines changed: 59 additions & 12 deletions

File tree

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,55 @@ To run tests:
7171
make tests
7272
```
7373

74-
To attach sistent to your project use:
74+
#### Using your local Sistent Fork in a Project
75+
76+
1. Install your local Sistent package in the project
7577

7678
```
7779
npm install <path-to-sistent-on-local-machine>
7880
```
7981

82+
> Example:
83+
>
84+
> ```
85+
> # relative path
86+
> npm install ../../sistent
87+
>
88+
> # absolute path
89+
> npm install /home/five/code/sistent
90+
> ```
91+
92+
This will update your Sistent dependency to:
93+
94+
```
95+
"@layer5/sistent" : "file:../../sistent"
96+
```
97+
98+
2. Build your local Sistent fork
99+
100+
After making changes to your fork, run this command in your local Sistent package.
101+
102+
```
103+
make build
104+
```
105+
106+
3. Run the build command in the project where your local Sistent fork is installed.
107+
108+
```
109+
# example, Meshery UI
110+
make ui-build
111+
```
112+
113+
Now your project should reflect changes from your local Sistent fork.
114+
115+
If you want to remove the local Sistent fork from your project, run:
116+
117+
```
118+
npm uninstall @layer5/sistent
119+
```
120+
121+
This will remove the local Sistent package from your project. You will have to install the standard package again after running this command.
122+
80123
> [!NOTE]
81124
> Avoid using `type any` in your code. Always specify explicit types to ensure type safety and maintainability.
82125

src/custom/CatalogDetail/OverviewSection.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import MetricsDisplay from './MetricsDisplay';
77
import PatternInfo from './PatternInfo';
88
import SocialSharePopper from './SocialSharePopper';
99
import UserInfo from './UserInfo';
10-
import { ContentRow, DesignHeading, OverviewContainer } from './style';
10+
import { ContentRow, DesignHeading, OverviewContainer, OverviewContainerHeader } from './style';
1111
import { Class } from './types';
1212

1313
interface OverviewSectionProps {
@@ -50,15 +50,7 @@ const OverviewSection: React.FC<OverviewSectionProps> = ({
5050
}) => {
5151
return (
5252
<OverviewContainer>
53-
<div
54-
style={{
55-
display: 'flex',
56-
flexDirection: 'row',
57-
width: '100%',
58-
flexWrap: 'wrap',
59-
fontFamily: fontFamily || 'inherit'
60-
}}
61-
>
53+
<OverviewContainerHeader>
6254
<DesignHeading>{details?.name}</DesignHeading>
6355
<SocialSharePopper
6456
details={details}
@@ -70,7 +62,7 @@ const OverviewSection: React.FC<OverviewSectionProps> = ({
7062
showShareAction={showShareAction}
7163
handleShare={handleShare}
7264
/>
73-
</div>
65+
</OverviewContainerHeader>
7466
<Grid container spacing={2}>
7567
<Grid item lg={4} md={4} sm={12} xs={12}>
7668
<Grid container>

src/custom/CatalogDetail/style.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,18 @@ export const OverviewContainer = styled('div')(({ theme }) => ({
200200
borderRadius: '0.4rem'
201201
}));
202202

203+
export const OverviewContainerHeader = styled('div')(({ theme }) => ({
204+
display: 'flex',
205+
flexDirection: 'row',
206+
width: '100%',
207+
flexWrap: 'wrap',
208+
fontFamily: 'inherit',
209+
210+
[theme.breakpoints.down('sm')]: {
211+
flexDirection: 'column'
212+
}
213+
}));
214+
203215
export const DesignHeading = styled('h1')(({ theme }) => ({
204216
textAlign: 'left',
205217
margin: '0rem 0rem 2rem 0rem',

0 commit comments

Comments
 (0)