Gazook89
ae11da2bc7
Fix the styles overriding previous styles
...
If there were two inputs sending styles to the same target (ie row and column gap), they would override each other.
This change fixes that by deepening the merges. Admittedly, I turned to cGPT to help me with this as the nesting was throwing me for a loop. It works, though, and I understand it now that I can read it.
2024-10-12 11:53:52 -05:00
Gazook89
b58b9ca8f0
Merge branch 'View-Modes-Radio-Options' into View-Modes
2024-10-12 11:06:09 -05:00
Gazook89
ba0b3e7d93
Add toggle for Page Shadows
...
Reworks the pagesStyles to a broader object previewStyles. This new object has this structure:
```
{
targetElement : { cssProperty: value }
}
```
2024-10-12 11:05:23 -05:00
Gazook89
6fca21b6ed
set defaultValue of gap sliders
...
defaultValue matches the normal styled values of the gap property on the .pages element.
removed the "tooltip" that showed the current value from the range sliders inside the anchoredbox (the gap sliders).
2024-10-11 22:53:38 -05:00
Gazook89
835305bcf6
Add a title to each button
...
add a role to the toolbr.
2024-10-11 22:32:53 -05:00
Trevor Buckner
1c47d743d6
Remove 429 error
2024-10-11 23:20:32 -04:00
Trevor Buckner
52a7ce9866
Merge branch 'master' into v3.15.2
2024-10-11 23:08:41 -04:00
Gazook89
395f2d16fa
change view mode toggles to indiv buttons
...
Rather than a single button with three states, it is three buttons. Went with buttons with `role='radio'` rather than true radios mostly because that is what Radix does.
2024-10-11 22:06:41 -05:00
G.Ambatte
bec830c3b8
Tweak color of Brew Renderer background text
2024-10-12 08:09:51 +13:00
Gazook89
73504a3386
Setting a padding-top to avoid pages hugging toolbar
2024-10-11 13:51:06 -05:00
Gazook89
c4074d67f5
Merge branch 'master' into View-Modes
2024-10-10 23:34:26 -05:00
G.Ambatte
d534eddb29
Remove unnecessary useEffect import
2024-10-11 13:14:53 +13:00
G.Ambatte
9099db5ea1
Remove obsolete state and event handlers
2024-10-11 11:56:29 +13:00
G.Ambatte
a9a8b4b9bb
Shift static height style to LESS file
2024-10-11 11:55:51 +13:00
G.Ambatte
5d29d40c97
Implement suggested change
2024-10-11 11:42:03 +13:00
G.Ambatte
4291284252
Merge branch 'master' into experimentalDeploymentIdentification
2024-10-11 11:10:28 +13:00
Víctor Losada Hernández
2d8874acaf
move back to conditional showing instead of conditional rendering
2024-10-10 13:17:24 +02:00
Víctor Losada Hernández
001bf4a605
move dismisskeys into state for proper rerender
2024-10-10 12:56:37 +02:00
Víctor Losada Hernández
656c9399ef
initial commit
2024-10-10 02:06:00 +02:00
Víctor Losada Hernández
6456c22c61
testing mutation Observer, don't review this yet
2024-10-09 21:33:26 +02:00
Víctor Losada Hernández
e396a51ad5
Merge branch 'v3.15.2' of https://github.com/naturalcrit/homebrewery into scroll-to-element
2024-10-07 11:47:13 +02:00
Gazook89
d6d6cc1e29
Add View Mode Options
...
Adds a new AnchoredBox component that is functionally a clone of the "saving error" notifications, but drops a lot of the JS in favor of the new (chrome-only!) CSS Anchor Positioning API. In subsequent commits, either alternate styling or a polyfill will be added non-supported browsers.
The box contains a few inputs that modify the CSS applied to `.pages`, most critically a "start on right" toggle for the Facing Pages mode.
2024-10-06 21:51:44 -05:00
Gazook89
9fce94af63
Small CSS tweaks/display 'value' tooltip only if exists
...
The range slider should only display a tooltip for the value if the value attribute exists. For example, the difference between controlled and uncontrolled inputs.
Update toolBar.less
2024-10-06 21:26:48 -05:00
Gazook89
41f390b305
Add a classname to recto configuration
...
Adding class name so that it can be toggled between 'recto' and 'verso'. Verso being the normal left/right configuration, no styling is needed. With recto, the first page is shifted to the second slot, or right side.
2024-10-06 21:24:50 -05:00
Gazook89
8115b1504e
Add flex property to pages
2024-10-05 23:01:08 -05:00
Gazook89
34fa724fdd
Change .pages margin to .brewRenderer padding
...
More consistent visuals since the zooming of the .pages element affects the spacing around the edges, and the brewRenderer padding isn't affected.
2024-10-05 22:43:13 -05:00
Gazook89
24544e713e
Basically revert previous change
...
Adding the margin resets back in because otherwise each .page margin is set to "auto" on the sides, and that makes them zoom awkwardly when in facing and flow modes.
2024-10-05 22:35:42 -05:00
Gazook89
06a806e260
preserve margin around .pages
...
Keep margin around .pages element such that the pages are never bumped right against the divider.
2024-10-05 21:55:42 -05:00
Gazook89
4259931b67
Merge branch 'master' into View-Modes
2024-10-05 21:39:06 -05:00
Trevor Buckner
1a325fb3c5
New notification
2024-10-01 22:25:17 -04:00
Trevor Buckner
ea656e5119
Issue notice
2024-09-29 00:15:26 -04:00
G.Ambatte
570c850c4f
Merge branch 'master' into fixToolbarZoomInPrint-#3744
2024-09-28 09:05:22 +12:00
G.Ambatte
17dfacd5c9
Add zoom property to BrewRenderer print styling
2024-09-28 09:03:00 +12:00
Trevor Buckner
ae123a8310
Change the other page number values as well
2024-09-27 11:35:01 -04:00
G.Ambatte
1f047890ab
Change default value of currentEditorCursorPageNum
2024-09-27 23:32:19 +12:00
Víctor Losada Hernández
2e5ebb861e
simplify logic
2024-09-17 19:50:39 +02:00
Víctor Losada Hernández
e92c169e71
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element
2024-09-16 23:01:40 +02:00
Trevor Buckner
63675a46e0
Lint more things
2024-09-16 01:42:21 -04:00
Trevor Buckner
5cc5eec619
Lint toolbar and snippetbar
2024-09-16 01:41:46 -04:00
Trevor Buckner
c07c02f1d9
Remove unused variable
2024-09-15 21:44:02 -04:00
Trevor Buckner
85401ba71b
Fix BrewRenderer scrolling to 0
2024-09-15 21:26:49 -04:00
Víctor Losada Hernández
e213eb0a78
"Refactor BrewRenderer: removed iframe load event listener, simplified page scrolling logic, and inlined getPageContainingElement functionality"
2024-09-15 18:37:27 +02:00
Víctor Losada Hernández
422829cbd8
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element
2024-09-15 16:52:12 +02:00
Trevor Buckner
d4fa5d55d0
Merge branch 'master' into pr/3484
2024-09-14 19:15:12 -04:00
Trevor Buckner
76c9f2ee71
Lint
2024-09-14 18:58:23 -04:00
Trevor Buckner
fa2874b18f
Let brewRenderer pass changes up, and inherit values down
2024-09-14 18:50:38 -04:00
Trevor Buckner
3ef91cb1ea
Add check for scroll event complete/ lift page state up
2024-09-12 12:55:11 -04:00
Trevor Buckner
707b90e445
Merge branch 'master' into pr/3484
2024-09-09 23:22:00 -04:00
Trevor Buckner
2b458d1265
Merge branch 'master' into Hide-Toolbar-2
2024-09-09 11:01:39 -04:00
Trevor Buckner
58a2993fe1
use className for react classes
...
Avoid warning of conflict with JS "class" keyword.
2024-09-09 11:00:45 -04:00