Skip to content

Commit

Permalink
Merge pull request #7392 from adibmbrk/fix/22315
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Jan 24, 2025
2 parents 6d3914e + f1eba68 commit 18b7800
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-schools-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.policy-administration.v1": patch
---

Fix minor issues in the policy administration page
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

.policy-list-node{
padding: 0;

.ellipsis-text {
text-overflow: ellipsis;
max-width: 300px;
overflow: hidden;
white-space: nowrap;
.policy-action-container {
margin-left: 10px;

.ellipsis-text {
text-overflow: ellipsis;
max-width: 300px;
overflow: hidden;
white-space: nowrap;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const PolicyListDraggableNode: FunctionComponent<PolicyListDraggableNodePropsInt

<Card variant="outlined" className="policy-list-node">
<CardContent>
<Stack direction={ "row" } justifyContent={ "space-between" }>
<Stack direction={ "row" } justifyContent={ "space-between" } className="policy-action-container">
<Typography className="ellipsis-text">{ policy.policyId }</Typography>
<Stack direction={ "row" } marginTop={ "3px" }>
<Popup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const PolicyListNode: FunctionComponent<PolicyListDraggableNodePropsInterface> =
<Card variant="outlined" className="policy-list-node">
<CardContent>
<Stack direction={ "row" } justifyContent={ "space-between" }>
<Stack direction={ "row" } spacing={ 1 } >
<Stack direction="row" spacing={ 1 }>
<Popup
trigger={ (
<Icon
Expand All @@ -141,7 +141,7 @@ const PolicyListNode: FunctionComponent<PolicyListDraggableNodePropsInterface> =
/>
) }
position="top center"
content={ t("policyAdministration:popup.deactivate") }
content={ t("policyAdministration:popup.activate") }
inverted
/>
<Typography className="ellipsis-text">{ policy.policyId }</Typography>
Expand Down

0 comments on commit 18b7800

Please sign in to comment.