Skip to content

Commit 9ab006e

Browse files
authored
fix: Truncation of title and extension form (#3724)
* Fix truncation of create extension form * Fix truncation of title * Fix color of status badge in replica sets * Review change
1 parent 3214d70 commit 9ab006e

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

src/components/BusolaExtensions/ExtensibilityStarterForm.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
ui5-checkbox {
77
margin-top: -6.75px;
88
}
9+
10+
@media (max-width: 1200px) {
11+
grid-template-columns: 2fr 8fr 8fr 3fr;
12+
}
13+
14+
@media (max-width: 480px) {
15+
grid-template-columns: 1fr;
16+
}
917
}
1018

1119
.resource-form--unset-height {

src/resources/ReplicaSets/ReplicaSetDetails.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,19 @@ export function ReplicaSetsDetails(props) {
120120
value: resource => <div>{resource?.status?.replicas ?? 0}</div>,
121121
},
122122
];
123-
124123
const statusConditions = resource => {
125124
return resource?.status?.conditions?.map(condition => {
125+
const overridenStatus = () => {
126+
if (condition.type === 'ReplicaFailure')
127+
return condition.status === 'True' ? 'Negative' : 'Positive';
128+
return undefined;
129+
};
126130
return {
127-
header: { titleText: condition.type, status: condition.status },
131+
header: {
132+
titleText: condition.type,
133+
status: condition.status,
134+
overrideStatusType: overridenStatus(),
135+
},
128136
message: condition.message,
129137
};
130138
});

src/shared/components/DynamicPageComponent/DynamicPageComponent.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
.bold-title {
1616
font-family: var(--sapObjectHeader_Title_FontFamily);
17+
text-wrap-mode: wrap;
1718
}
1819

1920
.description {

0 commit comments

Comments
 (0)