mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #12915 from kialam/fix-legend-and-tooltip-overflow-topology-view
Add scroll overflow for legend and tooltip in Topology View.
This commit is contained in:
commit
cdd2282282
@ -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)`
|
||||
&&& {
|
||||
@ -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>
|
||||
|
||||
@ -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)`
|
||||
&&& {
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user