Skip to content

Commit

Permalink
Add scroll overflow for legend and tooltip in Topology View.
Browse files Browse the repository at this point in the history
  • Loading branch information
kialam committed Sep 26, 2022
1 parent 9c2185c commit a1a4f26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions awx/ui/src/screens/TopologyView/Legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ import {

const Wrapper = styled.div`
position: absolute;
top: -20px;
left: 0;
padding: 10px;
padding: 0 10px;
width: 150px;
background-color: rgba(255, 255, 255, 0.85);
overflow: scroll;
height: 100%;
`;
const Button = styled(PFButton)`
&&& {
Expand Down Expand Up @@ -61,7 +62,7 @@ function Legend() {
<TextContent>
<Text
component={TextVariants.small}
style={{ fontWeight: 'bold', color: 'black' }}
style={{ fontWeight: 'bold', color: 'black', marginTop: 0 }}
>
{t`Legend`}
</Text>
Expand Down
7 changes: 4 additions & 3 deletions awx/ui/src/screens/TopologyView/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ import { formatDateString } from 'util/dates';

const Wrapper = styled.div`
position: absolute;
top: -20px;
right: 0;
padding: 10px;
padding: 0 10px;
width: 25%;
background-color: rgba(255, 255, 255, 0.85);
overflow: scroll;
height: 100%;
`;
const Button = styled(PFButton)`
&&& {
Expand Down Expand Up @@ -181,7 +182,7 @@ function Tooltip({
<TextContent>
<Text
component={TextVariants.small}
style={{ fontWeight: 'bold', color: 'black' }}
style={{ fontWeight: 'bold', color: 'black', marginTop: 0 }}
>
{t`Details`}
</Text>
Expand Down

0 comments on commit a1a4f26

Please sign in to comment.