Refactor Tooltip Timing and Enhance Dashboard Splitter Styles

- Reduced fade-out duration for tooltips from 500ms to 250ms and hide delay from 100ms to 10ms for improved responsiveness.
- Updated DashboardSidebarSplitter to include a new class for the content panel, enhancing layout flexibility and styling consistency.
- Adjusted CSS for cursor tooltip transitions to provide a smoother visual experience.
This commit is contained in:
Tom Butcher 2026-08-20 22:00:31 +01:00
parent 80ac635bf9
commit fdb3045053
3 changed files with 11 additions and 4 deletions

View File

@ -363,7 +363,7 @@ code {
.cursor-tooltip { .cursor-tooltip {
opacity: 0; opacity: 0;
transition: opacity 0.5s ease; transition: opacity 0.25s ease;
} }
.cursor-tooltip.is-visible { .cursor-tooltip.is-visible {
@ -1558,3 +1558,8 @@ span.ant-skeleton-input.ant-skeleton-input-sm.text-skeleton {
.ant-splitter-bar-dragger::after { .ant-splitter-bar-dragger::after {
content: none; content: none;
} }
.dashboard-splitter.farmcontrol-splitter
.ant-splitter-panel.dashboard-splitter-content-panel {
flex-grow: 1 !important;
}

View File

@ -208,7 +208,9 @@ const DashboardSidebarSplitter = ({ sidebar, children }) => {
> >
{sidebarNode} {sidebarNode}
</Splitter.Panel> </Splitter.Panel>
<Splitter.Panel min={320}>{children}</Splitter.Panel> <Splitter.Panel min={320} className='dashboard-splitter-content-panel'>
{children}
</Splitter.Panel>
</Splitter> </Splitter>
</Layout> </Layout>
) )

View File

@ -11,8 +11,8 @@ import CursorTooltip from '../common/CursorTooltip'
const TooltipContext = createContext(null) const TooltipContext = createContext(null)
const HIDE_DELAY_MS = 100 const HIDE_DELAY_MS = 10
const FADE_OUT_MS = 500 const FADE_OUT_MS = 250
export const TooltipProvider = ({ children }) => { export const TooltipProvider = ({ children }) => {
const [content, setContent] = useState(null) const [content, setContent] = useState(null)