mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: improve styles for tab bars and dividers (#1037)
This commit is contained in:
		
							parent
							
								
									19f97a388e
								
							
						
					
					
						commit
						2cd9e992fe
					
				@ -7,6 +7,7 @@ import {
 | 
				
			|||||||
    ListItemAvatar,
 | 
					    ListItemAvatar,
 | 
				
			||||||
    ListItemText,
 | 
					    ListItemText,
 | 
				
			||||||
    Typography,
 | 
					    Typography,
 | 
				
			||||||
 | 
					    Divider,
 | 
				
			||||||
} from '@mui/material';
 | 
					} from '@mui/material';
 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
    Extension,
 | 
					    Extension,
 | 
				
			||||||
@ -107,7 +108,7 @@ export const ApplicationView = () => {
 | 
				
			|||||||
                <Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
 | 
					                <Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
 | 
				
			||||||
                    Toggles
 | 
					                    Toggles
 | 
				
			||||||
                </Typography>
 | 
					                </Typography>
 | 
				
			||||||
                <hr />
 | 
					                <Divider />
 | 
				
			||||||
                <List>
 | 
					                <List>
 | 
				
			||||||
                    {seenToggles.map(
 | 
					                    {seenToggles.map(
 | 
				
			||||||
                        ({ name, description, notFound, project }, i) => (
 | 
					                        ({ name, description, notFound, project }, i) => (
 | 
				
			||||||
@ -135,7 +136,7 @@ export const ApplicationView = () => {
 | 
				
			|||||||
                <Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
 | 
					                <Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
 | 
				
			||||||
                    Implemented strategies
 | 
					                    Implemented strategies
 | 
				
			||||||
                </Typography>
 | 
					                </Typography>
 | 
				
			||||||
                <hr />
 | 
					                <Divider />
 | 
				
			||||||
                <List>
 | 
					                <List>
 | 
				
			||||||
                    {strategies.map(
 | 
					                    {strategies.map(
 | 
				
			||||||
                        ({ name, description, notFound }, i: number) => (
 | 
					                        ({ name, description, notFound }, i: number) => (
 | 
				
			||||||
@ -163,7 +164,7 @@ export const ApplicationView = () => {
 | 
				
			|||||||
                <Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
 | 
					                <Typography variant="subtitle1" style={{ padding: '1rem 0' }}>
 | 
				
			||||||
                    {instances.length} Instances registered
 | 
					                    {instances.length} Instances registered
 | 
				
			||||||
                </Typography>
 | 
					                </Typography>
 | 
				
			||||||
                <hr />
 | 
					                <Divider />
 | 
				
			||||||
                <List>
 | 
					                <List>
 | 
				
			||||||
                    {instances.map(
 | 
					                    {instances.map(
 | 
				
			||||||
                        ({
 | 
					                        ({
 | 
				
			||||||
 | 
				
			|||||||
@ -3,6 +3,9 @@ import { makeStyles } from 'tss-react/mui';
 | 
				
			|||||||
export const useStyles = makeStyles()(theme => ({
 | 
					export const useStyles = makeStyles()(theme => ({
 | 
				
			||||||
    tabNav: {
 | 
					    tabNav: {
 | 
				
			||||||
        backgroundColor: theme.palette.background.paper,
 | 
					        backgroundColor: theme.palette.background.paper,
 | 
				
			||||||
 | 
					        borderBottom: '1px solid',
 | 
				
			||||||
 | 
					        borderBottomColor: theme.palette.grey[300],
 | 
				
			||||||
 | 
					        borderRadius: 0,
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    tab: {
 | 
					    tab: {
 | 
				
			||||||
        [theme.breakpoints.up('lg')]: {
 | 
					        [theme.breakpoints.up('lg')]: {
 | 
				
			||||||
 | 
				
			|||||||
@ -45,7 +45,10 @@ export const TabNav = ({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
        <>
 | 
					        <>
 | 
				
			||||||
            <Paper className={classnames(styles.tabNav, navClass)}>
 | 
					            <Paper
 | 
				
			||||||
 | 
					                className={classnames(styles.tabNav, navClass)}
 | 
				
			||||||
 | 
					                elevation={0}
 | 
				
			||||||
 | 
					            >
 | 
				
			||||||
                <Tabs
 | 
					                <Tabs
 | 
				
			||||||
                    value={activeTab}
 | 
					                    value={activeTab}
 | 
				
			||||||
                    onChange={(_, tabId) => {
 | 
					                    onChange={(_, tabId) => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user