Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ const Wrapper = styled.div`
&:nth-child(2) {
width: 25%;
}

&:nth-child(3) {
overflow: visible;
position: relative;
}
}

thead {
Expand Down Expand Up @@ -61,6 +66,113 @@ const Wrapper = styled.div`
position: relative;
top: 1px;
}

.autocomplete-wrapper {
position: relative;
width: 100%;

.autocomplete-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: ${(props) => props.theme.dropdown.bg};
border: 1px solid ${(props) => props.theme.dropdown.border};
border-radius: 4px;
box-shadow: ${(props) => props.theme.dropdown.shadow};
z-index: 1000;
max-height: 200px;
overflow-y: auto;
margin-top: 2px;

.suggestion-item {
padding: 6px 10px;
cursor: pointer;
font-size: ${(props) => props.theme.font.size.base};
color: ${(props) => props.theme.dropdown.primaryText};
transition: background-color 0.15s ease;

&:hover,
&.selected {
background-color: ${(props) => props.theme.dropdown.hoverBg};
}
}
}
}

.value-autocomplete-wrapper {
position: relative;
width: 100%;
display: flex;
align-items: center;

.suggestions-toggle-btn {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
cursor: pointer;
padding: 2px 6px;
font-size: 10px;
color: ${(props) => props.theme.text.muted};
opacity: 0.6;
transition: opacity 0.15s ease;
z-index: 10;

&:hover {
opacity: 1;
}
}

.value-autocomplete-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: ${(props) => props.theme.dropdown.bg};
border: 1px solid ${(props) => props.theme.dropdown.border};
border-radius: 4px;
box-shadow: ${(props) => props.theme.dropdown.shadow};
z-index: 1000;
max-height: 200px;
overflow-y: auto;
margin-top: 2px;

.suggestion-item {
display: flex;
flex-direction: column;
padding: 8px 10px;
cursor: pointer;
font-size: ${(props) => props.theme.font.size.base};
color: ${(props) => props.theme.dropdown.primaryText};
transition: background-color 0.15s ease;
border-bottom: 1px solid ${(props) => props.theme.dropdown.border};

&:last-child {
border-bottom: none;
}

&:hover,
&.selected {
background-color: ${(props) => props.theme.dropdown.hoverBg};
}

.suggestion-env-name {
font-size: ${(props) => props.theme.font.size.sm};
color: ${(props) => props.theme.dropdown.secondaryText || props.theme.text.muted};
margin-bottom: 2px;
}

.suggestion-value {
font-family: monospace;
word-break: break-all;
color: ${(props) => props.theme.dropdown.primaryText};
}
}
}
}
`;

export default Wrapper;
Loading