Skip to content

Commit a8240cf

Browse files
authored
Merge pull request #1743 from eijawerner/cleanup-styles
Cleanup of unused styles
2 parents 296438c + 2f1194a commit a8240cf

File tree

6 files changed

+65
-152
lines changed

6 files changed

+65
-152
lines changed

src/browser/modules/DBMSInfo/__snapshots__/MetaItems.test.tsx.snap

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
exports[`LabelItems renders empty 1`] = `
44
<div>
55
<div
6-
class="sc-hUpaCq hBQjql"
6+
class="sc-iAKWXU fiffMu"
77
>
88
<h5
9-
class="sc-khQegj kHgioF"
9+
class="sc-iUKqMP kWpjPs"
1010
>
1111
Node Labels
1212
</h5>
1313
<div
14-
class="sc-jgrJph ejPeH"
14+
class="sc-efQSVx ka-Dmgl"
1515
>
1616
<p>
1717
There are no labels in database
@@ -24,15 +24,15 @@ exports[`LabelItems renders empty 1`] = `
2424
exports[`LabelItems renders labels 1`] = `
2525
<div>
2626
<div
27-
class="sc-hUpaCq hBQjql"
27+
class="sc-iAKWXU fiffMu"
2828
>
2929
<h5
30-
class="sc-khQegj kHgioF"
30+
class="sc-iUKqMP kWpjPs"
3131
>
3232
Node Labels
3333
</h5>
3434
<div
35-
class="sc-jgrJph ejPeH"
35+
class="sc-efQSVx ka-Dmgl"
3636
>
3737
<div
3838
class="sc-dkPtRN sc-hKwDye jYhbHV gKvrSp"
@@ -60,15 +60,15 @@ exports[`LabelItems renders labels 1`] = `
6060
exports[`PropertyItems renders empty 1`] = `
6161
<div>
6262
<div
63-
class="sc-hUpaCq hBQjql"
63+
class="sc-iAKWXU fiffMu"
6464
>
6565
<h5
66-
class="sc-khQegj kHgioF"
66+
class="sc-iUKqMP kWpjPs"
6767
>
6868
Property Keys
6969
</h5>
7070
<div
71-
class="sc-jgrJph ejPeH"
71+
class="sc-efQSVx ka-Dmgl"
7272
>
7373
<p>
7474
There are no properties in database
@@ -81,15 +81,15 @@ exports[`PropertyItems renders empty 1`] = `
8181
exports[`PropertyItems renders properties 1`] = `
8282
<div>
8383
<div
84-
class="sc-hUpaCq hBQjql"
84+
class="sc-iAKWXU fiffMu"
8585
>
8686
<h5
87-
class="sc-khQegj kHgioF"
87+
class="sc-iUKqMP kWpjPs"
8888
>
8989
Property Keys
9090
</h5>
9191
<div
92-
class="sc-jgrJph ejPeH"
92+
class="sc-efQSVx ka-Dmgl"
9393
>
9494
<div
9595
class="sc-dkPtRN sc-jRQBWg jYhbHV jZJEwZ"
@@ -111,15 +111,15 @@ exports[`PropertyItems renders properties 1`] = `
111111
exports[`RelationshipItems renders empty 1`] = `
112112
<div>
113113
<div
114-
class="sc-hUpaCq hBQjql"
114+
class="sc-iAKWXU fiffMu"
115115
>
116116
<h5
117-
class="sc-khQegj kHgioF"
117+
class="sc-iUKqMP kWpjPs"
118118
>
119119
Relationship Types
120120
</h5>
121121
<div
122-
class="sc-jgrJph ejPeH"
122+
class="sc-efQSVx ka-Dmgl"
123123
>
124124
<p>
125125
No relationships in database
@@ -132,15 +132,15 @@ exports[`RelationshipItems renders empty 1`] = `
132132
exports[`RelationshipItems renders relationshipTypes 1`] = `
133133
<div>
134134
<div
135-
class="sc-hUpaCq hBQjql"
135+
class="sc-iAKWXU fiffMu"
136136
>
137137
<h5
138-
class="sc-khQegj kHgioF"
138+
class="sc-iUKqMP kWpjPs"
139139
>
140140
Relationship Types
141141
</h5>
142142
<div
143-
class="sc-jgrJph ejPeH"
143+
class="sc-efQSVx ka-Dmgl"
144144
>
145145
<div
146146
class="sc-dkPtRN sc-eCImPb jYhbHV dPdKNs"

src/browser/modules/Stream/CypherFrame/VisualizationView/__snapshots__/VisualizationView.test.tsx.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ exports[`Visualization renders empty content 1`] = `<div />`;
55
exports[`Visualization renders with result and escapes any HTML 1`] = `
66
<div>
77
<div
8-
class="sc-bBHHxi cJDNuH"
8+
class="sc-cidDSM bJgiKu"
99
>
1010
<div
11-
class="sc-fKVqWL iKdqzS"
11+
class="sc-ikJyIC kpXvss"
1212
id="svg-vis"
1313
>
1414
<div
@@ -139,7 +139,7 @@ exports[`Visualization renders with result and escapes any HTML 1`] = `
139139
</div>
140140
</div>
141141
<div
142-
class="sc-iwjdpV kgKHIv"
142+
class="sc-hiCibw nXgZj"
143143
title="Collapse the Node Properties display"
144144
>
145145
<svg
@@ -156,32 +156,32 @@ exports[`Visualization renders with result and escapes any HTML 1`] = `
156156
</svg>
157157
</div>
158158
<div
159-
class="sc-bBHxTw cgpIWu"
159+
class="sc-jJoQJp bdlJEB"
160160
>
161161
<div
162-
class="sc-cxpSdN ljiZIO sc-ikJyIC cBKZZH react-resizable"
162+
class="sc-gWXbKe jJnEYo sc-cCcXHH iRMzhr react-resizable"
163163
data-testid="vizInspector"
164164
>
165165
<div
166-
class="sc-eicpiI gDARYg"
166+
class="sc-hkgtus fYrIKh"
167167
>
168168
Overview
169169
</div>
170170
<div
171-
class="sc-dkqQuH jJauhh"
171+
class="sc-bSqaIl bqEILb"
172172
>
173173
<div>
174174
<div
175-
class="sc-gXRojI fnAVBM"
175+
class="sc-iWBNLc iyniyo"
176176
>
177177
<span
178-
class="sc-kHxTfl kGozrS"
178+
class="sc-edERGn jhjrMc"
179179
>
180180
Node labels
181181
</span>
182182
</div>
183183
<ul
184-
class="sc-JkixQ sc-jvvksu kRydKe ixIxHD"
184+
class="sc-gIBqdA sc-dSfdvi ebPuUL fukQJW"
185185
>
186186
<div
187187
class="sc-dkPtRN sc-hKwDye jYhbHV gKvrSp"

src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultDetailsPane.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import React, { useState } from 'react'
2222
import { ClipboardCopier, PropertiesTable, upperFirst } from 'neo4j-arc/common'
2323
import { NodeItem, RelationshipItem } from '../../types'
2424

25-
import { PaneBody, PaneHeader, PaneTitle } from '../styled'
25+
import { PaneBody, PaneHeader, PaneTitle } from './styled'
2626
import { NodeLabel } from './NodeLabel'
2727
import { RelType } from './RelType'
2828
import { GraphStyleModel } from '../../models/GraphStyle'

src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/DefaultOverviewPane.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ import {
2727
import { GraphStyleModel } from '../../models/GraphStyle'
2828
import { GraphStats } from '../../utils/mapper'
2929

30-
import { StyledLegendInlineList } from './styled'
3130
import {
3231
PaneBody,
3332
PaneHeader,
3433
PaneBodySectionHeaderWrapper,
3534
PaneBodySectionSmallText,
36-
PaneBodySectionTitle
37-
} from '../styled'
35+
PaneBodySectionTitle,
36+
StyledLegendInlineList
37+
} from './styled'
3838

3939
import { NodeLabel } from './NodeLabel'
4040
import { RelType } from './RelType'

src/neo4j-arc/graph-visualization/GraphVisualizer/DefaultPanelContent/styled.tsx

Lines changed: 33 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -28,105 +28,52 @@ export const StyledInlineList = styled.ul`
2828
word-break: break-word;
2929
`
3030

31-
export const StyledInlineListStylePicker = styled(StyledInlineList)`
32-
display: grid;
33-
overflow-y: auto;
34-
max-height: 400px;
35-
background: ${props => props.theme.editorBackground};
36-
color: ${props => props.theme.primaryText};
37-
padding: 0.833em 1em;
38-
`
39-
export const StyledInlineListItem = styled.li`
40-
display: inline-block;
41-
padding-right: 5px;
42-
`
43-
44-
export const StyledToken = styled(StyledInlineListItem)`
45-
display: inline-block;
46-
font-weight: bold;
47-
line-height: 1em;
48-
text-align: center;
49-
vertical-align: baseline;
50-
user-select: none;
51-
font-size: 12px;
52-
margin-right: 5px;
53-
cursor: pointer;
54-
margin-bottom: 3px;
55-
`
56-
export const StyledLabelToken = styled(StyledToken)`
57-
padding: 4px 7px 4px 9px;
58-
border-radius: 20px;
59-
word-break: break-all;
60-
margin-top: 4px;
61-
cursor: default;
62-
`
63-
export const StyledTokenRelationshipType = styled(StyledToken)`
64-
padding: 4px 7px 4px 5px;
65-
border-radius: 3px;
66-
word-break: break-all;
67-
cursor: default;
68-
`
6931
export const StyledLegendInlineList = styled(StyledInlineList)`
7032
padding: 4px 0 0 0;
7133
&.contracted {
7234
max-height: ${legendRowHeight}px;
7335
overflow: hidden;
7436
}
7537
`
76-
export const StyledPickerListItem = styled(StyledInlineListItem)`
77-
padding-right: 5px;
78-
padding-left: 0;
79-
vertical-align: middle;
80-
line-height: 0;
38+
39+
export const NonClickableLabelChip = styled(StyledLabelChip)`
40+
cursor: default;
8141
`
8242

83-
export const StyledPickerSelector = styled.a`
84-
background-color: #aaa;
85-
display: inline-block;
86-
height: 12px;
87-
width: 12px;
88-
margin-top: 1px;
89-
line-height: 0;
90-
cursor: pointer;
91-
opacity: 0.4;
92-
&:hover {
93-
opacity: 1;
94-
}
95-
&.active {
96-
opacity: 1;
97-
}
43+
export const NonClickableRelTypeChip = styled(StyledRelationshipChip)`
44+
cursor: default;
9845
`
99-
export const StyledCircleSelector = styled(StyledPickerSelector)`
100-
border-radius: 50%;
46+
47+
export const PaneHeader = styled.div`
48+
font-size: 16px;
49+
margin-top: 10px;
50+
flex: 0 0 auto;
10151
`
102-
export const StyledCaptionSelector = styled.a`
103-
cursor: pointer;
104-
user-select: none;
105-
display: inline-block;
106-
padding: 1px 6px;
107-
font-size: 12px;
108-
line-height: 1em;
109-
color: #9195a0;
110-
border: 1px solid #9195a0;
111-
overflow: hidden;
112-
border-radius: 0.25em;
113-
margin-right: 0;
114-
font-weight: bold;
115-
&:hover {
116-
border-color: #aaa;
117-
color: #aaa;
118-
text-decoration: none;
119-
}
120-
&.active {
121-
color: white;
122-
background-color: #9195a0;
123-
}
52+
53+
export const PaneBody = styled.div`
54+
overflow: auto;
55+
margin: 14px 0;
56+
flex: 0 1 auto;
57+
display: flex;
58+
flex-direction: column;
59+
gap: 14px;
12460
`
12561

126-
export const NonClickableLabelChip = styled(StyledLabelChip)`
127-
cursor: default;
62+
export const PaneBodySectionTitle = styled.span`
63+
font-weight: 700;
12864
`
12965

130-
export const NonClickableRelTypeChip = styled(StyledRelationshipChip)`
131-
cursor: default;
66+
export const PaneBodySectionSmallText = styled.span`
67+
font-size: 0.9rem;
68+
`
69+
export const PaneBodySectionHeaderWrapper = styled.div`
70+
display: flex;
71+
flex-direction: column;
72+
`
73+
74+
export const PaneTitle = styled.div`
75+
margin-bottom: 10px;
76+
display: flex;
77+
gap: 5px;
78+
align-items: center;
13279
`

src/neo4j-arc/graph-visualization/GraphVisualizer/styled.tsx

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -75,40 +75,6 @@ export const PaneContainer = styled.div<{
7575
flex-direction: column;
7676
`
7777

78-
export const PaneHeader = styled.div`
79-
font-size: 16px;
80-
margin-top: 10px;
81-
flex: 0 0 auto;
82-
`
83-
84-
export const PaneBody = styled.div`
85-
overflow: auto;
86-
margin: 14px 0;
87-
flex: 0 1 auto;
88-
display: flex;
89-
flex-direction: column;
90-
gap: 14px;
91-
`
92-
93-
export const PaneBodySectionTitle = styled.span`
94-
font-weight: 700;
95-
`
96-
97-
export const PaneBodySectionSmallText = styled.span`
98-
font-size: 0.9rem;
99-
`
100-
export const PaneBodySectionHeaderWrapper = styled.div`
101-
display: flex;
102-
flex-direction: column;
103-
`
104-
105-
export const PaneTitle = styled.div`
106-
margin-bottom: 10px;
107-
display: flex;
108-
gap: 5px;
109-
align-items: center;
110-
`
111-
11278
export const StyledResizable = styled(Resizable)`
11379
.react-resizable {
11480
position: relative;

0 commit comments

Comments
 (0)