Skip to content

Commit

Permalink
Fix ugly outline around graph style picker
Browse files Browse the repository at this point in the history
  • Loading branch information
danieladugyan committed Jun 12, 2024
1 parent efffa1e commit 60330f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { StyledLabelChip } from 'neo4j-arc/common'
import { GraphStyleModel } from 'neo4j-arc/graph-visualization'

import { GrassEditor } from './GrassEditor'
import { StyledPopup } from './styled'

export type StyleableNodeLabelProps = {
selectedLabel: {
Expand All @@ -48,7 +49,7 @@ export function StyleableNodeLabel({
selectedLabel.label === '*' ? allNodesCount : selectedLabel.count

return (
<Popup
<StyledPopup
on="click"
basic
key={selectedLabel.label}
Expand All @@ -68,6 +69,6 @@ export function StyleableNodeLabel({
}
>
<GrassEditor selectedLabel={selectedLabel} />
</Popup>
</StyledPopup>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Popup, PopupProps } from 'semantic-ui-react'
import styled from 'styled-components'

export const legendRowHeight = 32

export const StyledPopup = styled<React.ComponentType<PopupProps>>(Popup)`
&& {
background: ${props => props.theme.editorBackground};
}
`

export const StyledInlineList = styled.ul`
list-style: none;
word-break: break-word;
Expand Down

0 comments on commit 60330f1

Please sign in to comment.