fix: environment list scroll (#5585)

This commit is contained in:
Pooja
2025-09-18 11:23:49 +05:30
committed by GitHub
parent de52ceea48
commit f3d4ac84d8
2 changed files with 24 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ const EnvironmentListContent = ({
<div className="dropdown-item no-environment" onClick={() => onEnvironmentSelect(null)}>
<span>No Environment</span>
</div>
<div className="pb-[2.625rem]">
<div>
{environments.map((env) => (
<div
key={env.uid}

View File

@@ -47,12 +47,17 @@ const Wrapper = styled.div`
.tippy-box {
min-width: 11.875rem;
min-height: 15.0625rem;
max-height: 75vh;
font-size: 0.8125rem;
position: relative;
overflow: hidden;
}
.tippy-box .tippy-content {
padding: 0;
display: flex;
flex-direction: column;
height: 100%;
.dropdown-item {
display: flex;
@@ -86,6 +91,10 @@ const Wrapper = styled.div`
border-top: 0.0625rem solid ${(props) => props.theme.dropdown.separator};
z-index: 10;
margin: 0;
&:hover {
background-color: ${(props) => props.theme.dropdown.bg + ' !important'};
}
button {
color: ${(props) => props.theme.dropdown.primaryText};
@@ -118,6 +127,20 @@ const Wrapper = styled.div`
}
}
.tab-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.environment-list {
flex: 1;
overflow-y: auto;
max-height: calc(75vh - 8rem);
padding-bottom: 2.625rem;
}
.dropdown-item-list {
max-height: 75vh;
overflow-y: scroll;