From eac1898f99d2800bcb9f9eef1b100820b09032ee Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Mon, 27 Jan 2020 17:10:20 +0100 Subject: [PATCH] Add a nice border around each filter control. --- src/userquerywidget.js | 55 ++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/src/userquerywidget.js b/src/userquerywidget.js index 62ecb91..5d9011d 100644 --- a/src/userquerywidget.js +++ b/src/userquerywidget.js @@ -3,7 +3,6 @@ import React from 'react'; import Switch from '@material-ui/core/Switch'; import Box from '@material-ui/core/Box'; import FormControlLabel from '@material-ui/core/FormControlLabel'; -import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import LabelIcon from '@material-ui/icons/Label'; import ImportContactsIcon from '@material-ui/icons/ImportContacts'; @@ -32,6 +31,13 @@ const useStyles = makeStyles(theme => ({ filtercontrol: { display: "flex", }, + bordered: { + border: "1px solid black", + "border-radius": "3px", + }, + margined: { + margin: "6px", + }, })); export function TagEqualsExpressionControl(props) { @@ -214,6 +220,7 @@ export function FilterControl(props) { export function UserQueryWidget(props) { const { userQuery, onChange } = props; + const classes = useStyles(); var _ = require('lodash'); @@ -235,27 +242,33 @@ export function UserQueryWidget(props) { return ( <> - - - - - - - - + + + + + + + + + + + + + + ); } \ No newline at end of file