Skip to content

Commit d130b64

Browse files
committed
add bg
1 parent dff0a59 commit d130b64

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

packages/app/src/app/components/Preview/DevTools/Tests/TestDetails/TestBlock/TestName/elements.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export const Block = styled.div<{ last: boolean }>`
1515
content: '';
1616
position: absolute;
1717
margin: auto;
18-
top: 12px;
18+
top: 13px;
1919
right: -10px;
20-
width: 10px;
21-
height: 10px;
20+
width: 8px;
21+
height: 8px;
2222
transform: rotate(45deg);
2323
border-right: 1px solid ${props =>
2424
props.theme.light ? `rgba(0, 0, 0, ${(props.last ? 0.3 : 0.4)})` : `rgba(255, 255, 255, ${(props.last ? 0.3 : 0.4)})`};
@@ -32,7 +32,6 @@ export const Block = styled.div<{ last: boolean }>`
3232
export const TestName = styled.div`
3333
padding: 0.4rem;
3434
padding-left: 20px;
35-
background-color: ${props => props.theme['sideBar.background']};
3635
color: ${props =>
3736
props.theme.light ? 'rgba(0, 0, 0, 0.8)' : 'rgba(255, 255, 255, 0.8)'};
3837
flex: auto;

packages/app/src/app/components/Preview/DevTools/Tests/TestDetails/TestBlock/elements.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
import styled from 'styled-components';
2+
import Color from 'color'
23

34
export const BlockHeader = styled.div`
45
display: flex;
56
align-items: center;
67
width: 100%;
78
box-sizing: border-box;
8-
padding: 0 0.5rem;
9-
padding-right: 2px;
9+
padding: 0rem 1rem;
10+
1011
overflow: hidden;
12+
background-color: ${props => Color(props.theme['sideBar.background'])
13+
.darken(props.theme.light ? 0.1 : 0.3)
14+
.rgbString()};
1115
`;
1216

17+
1318
export const Container = styled.div`
14-
margin-bottom: 1rem;
19+
margin-bottom: 0.75rem;
1520
overflow: hidden;
1621
1722
border-radius: 2px;
@@ -21,7 +26,7 @@ export const Actions = styled.div`
2126
display: flex;
2227
align-items: center;
2328
padding: 7px;
24-
background-color: ${props => props.theme['sideBar.background']};
29+
padding-right: 0;
2530
2631
font-size: 0.875rem;
2732
color: ${props =>

0 commit comments

Comments
 (0)