Styles.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. import { Theme } from '@mui/material';
  2. import { makeStyles } from '@mui/styles';
  3. export const getVectorSearchStyles = makeStyles((theme: Theme) => ({
  4. pageContainer: {
  5. display: 'flex',
  6. flexDirection: 'row',
  7. gap: theme.spacing(2),
  8. },
  9. form: {
  10. display: 'flex',
  11. flexDirection: 'column',
  12. gap: theme.spacing(0),
  13. width: 360,
  14. flexShrink: 0,
  15. backgroundColor: theme.palette.background.paper,
  16. border: `1px solid ${theme.palette.divider}`,
  17. '& textarea': {
  18. border: `1px solid ${theme.palette.divider}`,
  19. marginTop: theme.spacing(0),
  20. marginBottom: theme.spacing(1),
  21. overflow: 'scroll',
  22. height: '65px',
  23. maxWidth: '100%',
  24. width: '100%',
  25. display: 'block',
  26. boxSizing: 'border-box',
  27. },
  28. '& .text': {
  29. marginBottom: theme.spacing(1),
  30. fontWeight: '600',
  31. },
  32. overflow: 'hidden',
  33. },
  34. s1: {
  35. '& .wrapper': {
  36. display: 'flex',
  37. flexDirection: 'row',
  38. gap: theme.spacing(2),
  39. },
  40. '& .MuiSelect-root': {
  41. width: '116px',
  42. },
  43. },
  44. s2: {
  45. position: 'relative',
  46. textAlign: 'right',
  47. },
  48. s3: {},
  49. selector: {
  50. width: '50%',
  51. marginBottom: theme.spacing(0),
  52. },
  53. exampleBtn: {
  54. marginRight: theme.spacing(1),
  55. },
  56. paramsWrapper: {
  57. display: 'flex',
  58. flexDirection: 'column',
  59. },
  60. resultsWrapper: {
  61. border: `1px solid ${theme.palette.divider}`,
  62. background: '#fff',
  63. display: 'flex',
  64. flexDirection: 'column',
  65. flexGrow: 0,
  66. width: `calc(100% - 396px)`,
  67. padding: theme.spacing(1),
  68. },
  69. toolbar: {
  70. display: 'flex',
  71. justifyContent: 'space-between',
  72. alignItems: 'center',
  73. background: '#fff',
  74. paddingBottom: theme.spacing(1),
  75. '& .icon': {
  76. fontSize: '16px',
  77. },
  78. '& .left': {
  79. display: 'flex',
  80. alignItems: 'center',
  81. '& .text': { fontSize: 12, minWidth: '92px' },
  82. '& .MuiButton-root': {
  83. marginRight: theme.spacing(1),
  84. },
  85. },
  86. '& .right': {},
  87. },
  88. menuLabel: {
  89. minWidth: '108px',
  90. padding: theme.spacing(0, 1),
  91. margin: theme.spacing(0, 1),
  92. backgroundColor: theme.palette.background.paper,
  93. color: theme.palette.text.secondary,
  94. },
  95. menuItem: {
  96. fontWeight: 500,
  97. fontSize: '12px',
  98. lineHeight: '16px',
  99. color: theme.palette.text.secondary,
  100. },
  101. error: {
  102. display: 'block',
  103. marginTop: theme.spacing(-1),
  104. padding: '8px 0',
  105. color: theme.palette.error.main,
  106. },
  107. vectorTableCell: {
  108. display: 'flex',
  109. whiteSpace: 'nowrap',
  110. },
  111. filterExpressionInput: {
  112. width: '33vw',
  113. '& .MuiInput-underline:before': {
  114. borderWidth: 1,
  115. },
  116. '& .MuiInput-underline:after': {
  117. borderWidth: 1,
  118. },
  119. },
  120. }));