mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-18 13:39:31 +02:00
Fix the ExampleCard Textfields style
This commit is contained in:
@@ -50,13 +50,18 @@ export default function ExampleCard({
|
|||||||
<Typography variant="body2" color="text.secondary">
|
<Typography variant="body2" color="text.secondary">
|
||||||
{description}
|
{description}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
display="flex"
|
|
||||||
onClick={handleSampleTextClick}
|
onClick={handleSampleTextClick}
|
||||||
sx={{
|
sx={{
|
||||||
|
display: 'flex',
|
||||||
|
zIndex: '2',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
bgcolor: 'transparent',
|
||||||
padding: '5px 10px',
|
padding: '5px 10px',
|
||||||
borderRadius: '5px',
|
borderRadius: '5px',
|
||||||
|
cursor: 'pointer',
|
||||||
boxShadow: 'inset 2px 2px 5px #b8b9be, inset -3px -3px 7px #fff;'
|
boxShadow: 'inset 2px 2px 5px #b8b9be, inset -3px -3px 7px #fff;'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -67,6 +72,7 @@ export default function ExampleCard({
|
|||||||
multiline
|
multiline
|
||||||
sx={{
|
sx={{
|
||||||
'& .MuiOutlinedInput-root': {
|
'& .MuiOutlinedInput-root': {
|
||||||
|
zIndex: '-1',
|
||||||
'& fieldset': {
|
'& fieldset': {
|
||||||
border: 'none'
|
border: 'none'
|
||||||
}
|
}
|
||||||
@@ -74,14 +80,19 @@ export default function ExampleCard({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<ArrowDownwardIcon />
|
<ArrowDownwardIcon />
|
||||||
<Box
|
<Box
|
||||||
display="flex"
|
|
||||||
onClick={handleSampleResultClick}
|
onClick={handleSampleResultClick}
|
||||||
sx={{
|
sx={{
|
||||||
|
display: 'flex',
|
||||||
|
zIndex: '2',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
bgcolor: 'transparent',
|
||||||
padding: '5px 10px',
|
padding: '5px 10px',
|
||||||
borderRadius: '5px',
|
borderRadius: '5px',
|
||||||
|
cursor: 'pointer',
|
||||||
boxShadow: 'inset 2px 2px 5px #b8b9be, inset -3px -3px 7px #fff;'
|
boxShadow: 'inset 2px 2px 5px #b8b9be, inset -3px -3px 7px #fff;'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -92,6 +103,7 @@ export default function ExampleCard({
|
|||||||
multiline
|
multiline
|
||||||
sx={{
|
sx={{
|
||||||
'& .MuiOutlinedInput-root': {
|
'& .MuiOutlinedInput-root': {
|
||||||
|
zIndex: '-1',
|
||||||
'& fieldset': {
|
'& fieldset': {
|
||||||
border: 'none'
|
border: 'none'
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { Box, Stack, TextField, Typography } from '@mui/material';
|
import { Box, Stack, TextField, Typography } from '@mui/material';
|
||||||
import { RequiredOptionsProps } from '../../../components/examples/Examples';
|
import { RequiredOptionsProps } from './Examples';
|
||||||
import CheckboxWithDesc from 'components/options/CheckboxWithDesc';
|
import CheckboxWithDesc from 'components/options/CheckboxWithDesc';
|
||||||
|
|
||||||
export default function RequiredOptions({
|
export default function RequiredOptions({
|
||||||
@@ -27,7 +27,6 @@ export default function RequiredOptions({
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
display="flex"
|
|
||||||
onClick={handleBoxClick}
|
onClick={handleBoxClick}
|
||||||
sx={{
|
sx={{
|
||||||
zIndex: '2',
|
zIndex: '2',
|
||||||
|
Reference in New Issue
Block a user