1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: improve styles for tab bars and dividers (#1037)

This commit is contained in:
olav 2022-05-27 12:27:33 +02:00 committed by GitHub
parent 19f97a388e
commit 2cd9e992fe
3 changed files with 11 additions and 4 deletions

View File

@ -7,6 +7,7 @@ import {
ListItemAvatar,
ListItemText,
Typography,
Divider,
} from '@mui/material';
import {
Extension,
@ -107,7 +108,7 @@ export const ApplicationView = () => {
<Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
Toggles
</Typography>
<hr />
<Divider />
<List>
{seenToggles.map(
({ name, description, notFound, project }, i) => (
@ -135,7 +136,7 @@ export const ApplicationView = () => {
<Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
Implemented strategies
</Typography>
<hr />
<Divider />
<List>
{strategies.map(
({ name, description, notFound }, i: number) => (
@ -163,7 +164,7 @@ export const ApplicationView = () => {
<Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
{instances.length} Instances registered
</Typography>
<hr />
<Divider />
<List>
{instances.map(
({

View File

@ -3,6 +3,9 @@ import { makeStyles } from 'tss-react/mui';
export const useStyles = makeStyles()(theme => ({
tabNav: {
backgroundColor: theme.palette.background.paper,
borderBottom: '1px solid',
borderBottomColor: theme.palette.grey[300],
borderRadius: 0,
},
tab: {
[theme.breakpoints.up('lg')]: {

View File

@ -45,7 +45,10 @@ export const TabNav = ({
return (
<>
<Paper className={classnames(styles.tabNav, navClass)}>
<Paper
className={classnames(styles.tabNav, navClass)}
elevation={0}
>
<Tabs
value={activeTab}
onChange={(_, tabId) => {