Skip to content
Merged
Changes from all 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
19 changes: 11 additions & 8 deletions site/src/pages/Header/ScanHeight.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const Wrapper = styled.div`
background-color: var(--neutral100);
border: 1px solid var(--neutral400);
border-radius: 4px;
min-width: 200px;
@media screen and (max-width: 600px) {
min-width: 65px;
position: static;
}
:hover {
Expand All @@ -43,15 +41,14 @@ const Wrapper = styled.div`
const ScanHeightWrapper = styled.div`
display: flex;
align-items: center;
flex: 1 1 auto;
height: 32px;
padding: 4px 8px;
padding-right: 0;
cursor: pointer;
div.blockHeight {
padding-right: 8px;
display: flex;
flex-grow: 1;
align-items: center;
}
`;

Expand Down Expand Up @@ -94,9 +91,10 @@ const Button = styled.button`
const SymbolWrapper = styled(Card)`
position: absolute;
padding: 4px 0;
left: 0;
right: 0;
top: calc(100% + 8px);
width: 100%;
width: auto;
min-width: 200px;
z-index: 999;
@media screen and (max-width: 600px) {
width: 100vw;
Expand Down Expand Up @@ -164,9 +162,10 @@ const NodeButton = styled.button`
const NodeItemWrapper = styled(Card)`
position: absolute;
padding: 4px 0;
left: 0;
right: 0;
top: calc(100% + 8px);
width: 100%;
width: auto;
min-width: 200px;
z-index: 999;
@media screen and (max-width: 600px) {
width: 100vw;
Expand All @@ -185,6 +184,7 @@ const NodeItem = styled.div`
font-size: 13px;
line-height: 18px;
color: var(--textPrimary);
white-space: nowrap;
:hover {
background: var(--neutral300);
}
Expand All @@ -199,6 +199,7 @@ const NodeItem = styled.div`
p.delay >= 0 &&
css`
> .delay {
margin-left: 4px;
color: var(--green500);
}
`}
Expand All @@ -208,6 +209,7 @@ const NodeItem = styled.div`
p.delay >= 100 &&
css`
> .delay {
margin-left: 4px;
color: var(--yellow500);
}
`}
Expand All @@ -217,6 +219,7 @@ const NodeItem = styled.div`
p.delay >= 300 &&
css`
> .delay {
margin-left: 4px;
color: var(--red500);
}
`}
Expand Down