Skip to content
Snippets Groups Projects
Unverified Commit bbc123c3 authored by Tyler Marshall's avatar Tyler Marshall Committed by GitHub
Browse files

fix: move rollover arrow into view (#2774)

* fix: move rollover arrow into view

ref: https://github.com/actualbudget/actual/issues/2757

* fix: adds isNarrowWidth for responsive arrow

* ci: fix lint

* fix: update category name
parent 04273d80
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import React, { type ComponentProps } from 'react';
import { useFeatureFlag } from '../../hooks/useFeatureFlag';
import { SvgArrowThinRight } from '../../icons/v1';
import { useResponsive } from '../../ResponsiveProvider';
import { type CSSProperties } from '../../style';
import { View } from '../common/View';
import { CellValue } from '../spreadsheet/CellValue';
......@@ -33,6 +34,9 @@ export function BalanceWithCarryover({
const goalValue = useSheetValue(goal);
const budgetedValue = useSheetValue(budgeted);
const isGoalTemplatesEnabled = useFeatureFlag('goalTemplatesEnabled');
const { isNarrowWidth } = useResponsive();
return (
<>
<CellValue
......@@ -60,7 +64,7 @@ export function BalanceWithCarryover({
alignSelf: 'center',
marginLeft: 2,
position: 'absolute',
right: -8,
right: isNarrowWidth ? '-8px' : '-4px',
top: 0,
bottom: 0,
justifyContent: 'center',
......
---
category: Bugfix
authors: [Tigatok]
---
Move the rollover arrow into view.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment