Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: robots icon and style for viewProject

kruzhambusaacaa0d041f2
diff --git a/src/pages/Project/View/ViewProject.tsx b/src/pages/Project/View/ViewProject.tsx
index 19ae49255..a713a05f0 100644
--- a/src/pages/Project/View/ViewProject.tsx
+++ b/src/pages/Project/View/ViewProject.tsx
@@ -1391,7 +1391,7 @@ const ViewProject = ({
<h2 className='text-3xl font-bold text-gray-900 dark:text-gray-50 break-words break-all'>
{name}
</h2>
- <div className='flex mt-3 md:mt-0 max-w-[420px] flex-wrap sm:flex-nowrap items-center sm:max-w-none space-x-2 sm:space-x-0 justify-center sm:justify-between w-full sm:w-auto mx-auto sm:mx-0'>
+ <div className='flex mt-3 md:mt-0 max-w-[420px] flex-wrap sm:flex-nowrap items-center sm:max-w-none justify-center sm:justify-between w-full sm:w-auto mx-auto sm:mx-0 custom-space-x-style'>
<div className='md:border-r border-gray-200 dark:border-gray-600 md:pr-3 sm:mr-3'>
<button
type='button'
diff --git a/src/pages/Project/View/styles.css b/src/pages/Project/View/styles.css
index f8a7a141b..4033bbaf4 100644
--- a/src/pages/Project/View/styles.css
+++ b/src/pages/Project/View/styles.css
@@ -5,3 +5,11 @@ html.dark .bb-legend-item text {
html.dark .bb-axis {
fill: #f9fafb;
}
+
+@media (max-width: 640px) {
+ .custom-space-x-style > :not([hidden]) ~ :not([hidden]) {
+ --tw-space-x-reverse: 0 !important;
+ margin-right: calc(0.5rem * var(--tw-space-x-reverse)) !important;
+ margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))) !important;
+ }
+}
diff --git a/src/ui/icons/Robot.tsx b/src/ui/icons/Robot.tsx
index 7c0621795..6eaffd141 100644
--- a/src/ui/icons/Robot.tsx
+++ b/src/ui/icons/Robot.tsx
@@ -1,16 +1,19 @@
import React from 'react'
import cx from 'clsx'
import PropTypes from 'prop-types'
+import { useSelector } from 'react-redux'
+import { StateType } from 'redux/store'
const Robot = ({
- className, containerClassName, // theme,
+ className, containerClassName,
}: {
className?: string,
containerClassName?: string,
}): JSX.Element => {
+ const theme = useSelector((state: StateType) => state.ui.theme.theme)
const cn = cx(className, {
- // 'fill-white': theme === 'dark',
- // 'fill-slate-800': theme === 'light',
+ 'fill-text-gray-700': theme === 'dark',
+ 'fill-white': theme === 'light',
})
return (
@@ -27,7 +30,6 @@ const Robot = ({
Robot.propTypes = {
className: PropTypes.string,
containerClassName: PropTypes.string,
- // theme: PropTypes.string.isRequired,
}
Robot.defaultProps = {