debug: add logging for problemNumbers and cellBorders changes
This commit is contained in:
parent
3f33cd1924
commit
3e843e0051
|
|
@ -12,6 +12,8 @@ export function LayoutTab() {
|
||||||
const { resolvedTheme } = useTheme()
|
const { resolvedTheme } = useTheme()
|
||||||
const isDark = resolvedTheme === 'dark'
|
const isDark = resolvedTheme === 'dark'
|
||||||
|
|
||||||
|
console.log('[LayoutTab] Current formState.displayRules:', formState.displayRules)
|
||||||
|
|
||||||
// Orientation change handler with automatic problemsPerPage/cols updates
|
// Orientation change handler with automatic problemsPerPage/cols updates
|
||||||
const handleOrientationChange = (
|
const handleOrientationChange = (
|
||||||
orientation: 'portrait' | 'landscape',
|
orientation: 'portrait' | 'landscape',
|
||||||
|
|
@ -83,6 +85,11 @@ export function LayoutTab() {
|
||||||
onProblemNumbersChange={(value) => {
|
onProblemNumbersChange={(value) => {
|
||||||
const displayRules: DisplayRules =
|
const displayRules: DisplayRules =
|
||||||
formState.displayRules ?? defaultAdditionConfig.displayRules
|
formState.displayRules ?? defaultAdditionConfig.displayRules
|
||||||
|
console.log('[LayoutTab] Changing problemNumbers:', {
|
||||||
|
from: displayRules.problemNumbers,
|
||||||
|
to: value,
|
||||||
|
fullDisplayRules: displayRules,
|
||||||
|
})
|
||||||
onChange({
|
onChange({
|
||||||
displayRules: {
|
displayRules: {
|
||||||
...displayRules,
|
...displayRules,
|
||||||
|
|
@ -93,6 +100,11 @@ export function LayoutTab() {
|
||||||
onCellBordersChange={(value) => {
|
onCellBordersChange={(value) => {
|
||||||
const displayRules: DisplayRules =
|
const displayRules: DisplayRules =
|
||||||
formState.displayRules ?? defaultAdditionConfig.displayRules
|
formState.displayRules ?? defaultAdditionConfig.displayRules
|
||||||
|
console.log('[LayoutTab] Changing cellBorders:', {
|
||||||
|
from: displayRules.cellBorders,
|
||||||
|
to: value,
|
||||||
|
fullDisplayRules: displayRules,
|
||||||
|
})
|
||||||
onChange({
|
onChange({
|
||||||
displayRules: {
|
displayRules: {
|
||||||
...displayRules,
|
...displayRules,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue