Skip to content

Commit fa69c03

Browse files
committed
Fixed Styles and Spacing issues in interpreting-meshery-designs
Signed-off-by: krishnaShuk <shuklakrishna.kris@gmail.com>
1 parent c3bb56c commit fa69c03

2 files changed

Lines changed: 53 additions & 7 deletions

File tree

content-learn/mastering-meshery/introduction-to-meshery/meshery/interpreting-meshery-designs.mdx

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ Let's explore a few of these categories.
9696
src={Triangles}
9797
align="center"
9898
width="25%"
99+
style={{
100+
objectFit: 'contain !important',
101+
}}
99102
/>
100103

101104
- **Category**: **Networking and Service Management**.
@@ -105,12 +108,15 @@ Let's explore a few of these categories.
105108
- **Examples**: API Service, Service.
106109

107110

108-
1. **Rectangles**:
111+
2. **Rectangles**:
109112

110113
<img
111114
src={Rectangles}
112115
align="center"
113116
width="25%"
117+
style={{
118+
objectFit: 'contain !important',
119+
}}
114120
/>
115121

116122
- **Category**: **Hierarchical and Parent Components**
@@ -121,12 +127,15 @@ Let's explore a few of these categories.
121127

122128
- **Examples**: Namespace, Node, Pod, ReplicaSet, DaemonSet, Horizontal Pod Autoscaler.
123129

124-
1. **User Icons**:
130+
3. **User Icons**:
125131

126132
<img
127133
src={Users}
128134
align="center"
129135
width="25%"
136+
style={{
137+
objectFit: 'contain !important',
138+
}}
130139
/>
131140

132141
- **Category**: **Role-based access control (RBAC) components**
@@ -135,12 +144,15 @@ Let's explore a few of these categories.
135144

136145
- **Examples**: ClusterRole, Role, Service Account etc.
137146

138-
1. **Cylinders**:
147+
4. **Cylinders**:
139148

140149
<img
141150
src={Cylinders}
142151
align="center"
143152
width="25%"
153+
style={{
154+
objectFit: 'contain !important',
155+
}}
144156
/>
145157

146158
- **Category**: **Storage and Stateful Components**
@@ -166,6 +178,9 @@ Note that users have the flexibility to **customize** these arrow styles to suit
166178
src={DashedArrows}
167179
align="center"
168180
width="25%"
181+
style={{
182+
objectFit: 'contain !important',
183+
}}
169184
/>
170185

171186
These are used to indicate traffic flow and relationships between components. The dashed lines represent dynamic interactions and data movement, while the arrowheads show the direction of the flow or relationship.
@@ -176,6 +191,9 @@ These are used to indicate traffic flow and relationships between components. Th
176191
src={AnnotationArrow}
177192
align="center"
178193
width="25%"
194+
style={{
195+
objectFit: 'contain !important',
196+
}}
179197
/>
180198

181199
These are used to denote annotations or static connections between components. They serve to illustrate fixed relationships or highlight specific details without implying a flow of data or interaction.
@@ -188,6 +206,9 @@ These are used to denote annotations or static connections between components. T
188206
src={NetworkEdgeRelationship}
189207
align="center"
190208
width="50%"
209+
style={{
210+
objectFit: 'contain !important',
211+
}}
191212
/>
192213

193214
- **Dashed arrow**: Indicates that the service is linked to the pod, exposing network access to it through a specified port.
@@ -208,12 +229,19 @@ The intermediary component (such as a RoleBinding) connects the two, defining ho
208229
src={EdgePermissions}
209230
align="center"
210231
width="50%"
232+
style={{
233+
objectFit: 'contain !important',
234+
}}
211235
/>
212236

213237
**Creating Edge-Permission Relationships Between Components**
214238

215239
<a href={edgePermissionGif}>
216-
<img src={edgePermissionGif} width="100%" align="center" />
240+
<img src={edgePermissionGif} width="100%" align="center"
241+
style={{
242+
objectFit: 'contain !important',
243+
}}
244+
/>
217245
</a>
218246

219247

@@ -233,6 +261,7 @@ In Meshery, these integrated components are distinctly represented by their spec
233261
style={{
234262
marginTop: '20px',
235263
marginBottom: '20px',
264+
objectFit: 'contain !important',
236265
}}
237266
/>
238267
<h5 class="chapter-sub-heading">_Example of integration components in Meshery_</h5>
@@ -271,7 +300,11 @@ Annotations can be created using Meshery's Diagramming tools found in the dock a
271300
1. **Images**: Images can be added to the design to represent components, logos, or any visual aid that supports understanding the architecture.
272301

273302
<a href={AnnotationExampleGif}>
274-
<img src={AnnotationExampleGif} width="100%" align="center" />
303+
<img src={AnnotationExampleGif} width="100%" align="center"
304+
style={{
305+
objectFit: 'contain !important',
306+
}}
307+
/>
275308
</a>
276309

277310

@@ -292,14 +325,22 @@ While default shapes, colors, and icons are provided for components and annotati
292325
**Customizing Kubernetes Components**
293326

294327
<a href={CustomizeKubernetesGif}>
295-
<img src={CustomizeKubernetesGif} width="100%" align="center" />
328+
<img src={CustomizeKubernetesGif} width="100%" align="center"
329+
style={{
330+
objectFit: 'contain !important',
331+
}}
332+
/>
296333
</a>
297334

298335

299336
**Creating and Customizing Arrow Annotations**
300337

301338
<a href={CreateAnnotationGif}>
302-
<img src={CreateAnnotationGif} width="100%" align="center" />
339+
<img src={CreateAnnotationGif} width="100%" align="center"
340+
style={{
341+
objectFit: 'contain !important',
342+
}}
343+
/>
303344
</a>
304345

305346

src/components/Learn-Components/Chapters-Style/chapters.style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ export const ChapterStyle = styled.div`
1717
}
1818
}
1919
}
20+
21+
div[style*="width:100%"][style*="height:auto"] {
22+
aspect-ratio: unset !important;
23+
margin: 20px;
24+
}
2025
`;

0 commit comments

Comments
 (0)