0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 20:12:40 +00:00
Commit Graph

2796 Commits

Author SHA1 Message Date
Gazook89
183dd63021 style change on page text input
Reduce the visual prominence of the page input by using a darker background and a text color that matches the rest of the toolbar icons.  Darker background still indicates this is an interactive item (is an input), hopefully.
2024-10-21 21:19:49 -05:00
Gazook89
0afc2ab2e6 modify effect to enable Jump Editor button
This fixes the "jump editor to preview position" button.
2024-10-21 20:43:32 -05:00
Gazook89
119755e23a Merge branch 'master' into Intersection-Observer 2024-10-21 00:33:56 -05:00
Gazook89
41fdf48ad3 Setup Intersection Observers & more...
Bad commit here with too much stuff.  I apologize.

This sets up two Intersection Observers: the first captures every page that is at least 30% visible inside the `.pages` container, and the second captures every page that has at least one pixel on the horizontal center line of `.pages`.  Both can be arrays of integers (page index).

The "visiblePages" array is duplicated and formatted into a "formattedPages" state, which gets displayed in the toolbar.

The toolbar displays that, unless the user clicks into the page input and enters their own integer (only a single integer, no range), which can then jump the preview to that page on Enter or blur().

The Arrow 'change page' buttons jump the preview back and forth by a 'full set'.
 If one page is viewed at a time, this is moved on page a time, and if 10 pages are viewed at a time it jumps the pages by 10.

Left to do:  adapt the "jump editor to match preview" divider button to work with new "centerPage".
2024-10-21 00:30:45 -05:00
G.Ambatte
917f20cdd5 Merge branch 'master' into catchIDBErrors 2024-10-21 16:27:30 +13:00
G.Ambatte
0c98f832bb Add catch to await calls 2024-10-21 16:21:41 +13:00
Víctor Losada Hernández
ebdbb39f24 linting 2024-10-20 22:29:14 +02:00
Víctor Losada Hernández
976740dc8b make more concise 2024-10-20 22:21:07 +02:00
Víctor Losada Hernández
cac87b14c7 refactor to func comp and using dialog 2024-10-20 22:07:33 +02:00
Trevor Buckner
0e9021049c lint 2024-10-20 13:00:05 -04:00
Víctor Losada Hernández
1d663ef38d last iteration 2024-10-20 12:19:38 +02:00
Víctor Losada Hernández
d3e11ead54 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into snippet-bar-wrapping 2024-10-20 12:19:26 +02:00
Trevor Buckner
ac766f3b37 Update brewRenderer.jsx 2024-10-18 10:23:56 -04:00
Víctor Losada Hernández
5a75182aff changes as requested, wrapping of editor tools, and linting 2024-10-18 00:52:26 +02:00
Víctor Losada Hernández
8538ccabe6 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into snippet-bar-wrapping 2024-10-17 23:47:02 +02:00
Víctor Losada Hernández
8ef88a4799 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-10-17 23:42:57 +02:00
Víctor Losada Hernández
189625c79b adding margin to scroll action to prevent toolbar overlapping 2024-10-17 23:38:27 +02:00
Víctor Losada Hernández
d872a496a7 fix mutation observer integration 2024-10-17 23:38:11 +02:00
Víctor Losada Hernández
9a4473526a move around 2 2024-10-17 22:59:29 +02:00
Víctor Losada Hernández
5077fda3f6 move stuff around for minimal changes 2024-10-17 22:58:14 +02:00
Víctor Losada Hernández
397ae31f56 remove stale changes 2024-10-17 22:56:58 +02:00
Trevor Buckner
f2f06b23fd Disable Global ToC Snippet 2024-10-17 16:42:57 -04:00
Víctor Losada Hernández
87915ef0ef remove unnecessary changes 2024-10-17 22:42:55 +02:00
Víctor Losada Hernández
ccfd5578cf Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-10-17 22:39:28 +02:00
Víctor Losada Hernández
618e865e52 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-notification-client-side 2024-10-17 22:29:31 +02:00
Trevor Buckner
7888bfa878 Merge branch 'master' into tweakBrewRendererBackgroundStyle 2024-10-16 16:23:47 -04:00
Trevor Buckner
2aa60f793d Fix /new
/new starts with no `text` so it will crash without `?.`
2024-10-15 22:39:13 -04:00
Trevor Buckner
f1aeea18d4 Only jump when on text panel 2024-10-15 22:07:55 -04:00
Trevor Buckner
321bbba4b8 Rearrange 2024-10-15 22:07:41 -04:00
Trevor Buckner
36af1cdb7f Update brewRenderer.jsx 2024-10-15 21:47:27 -04:00
Gazook89
810c2140c9 move some toolbar specific styling to toolbar.less 2024-10-13 20:45:05 -05:00
Gazook89
c4fbc8d827 Merge branch 'master' into View-Modes 2024-10-13 09:40:05 -05:00
Gazook89
96ae07a456 Small style change on checkbox inputs 2024-10-13 09:39:41 -05:00
Víctor Losada Hernández
3c66907a86 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-10-13 11:15:15 +02:00
Víctor Losada Hernández
0663e82fa1 remove unnecessary space in homepage markdown 2024-10-13 10:58:24 +02:00
Víctor Losada Hernández
6e241c5bcd remove splitpane parent 2024-10-13 10:53:05 +02:00
Víctor Losada Hernández
ebe5dca7a9 remove unnecessary child in nav 2024-10-13 10:51:06 +02:00
Gazook89
b33d9264d3 unify terms to 'spreads'
This commit only renames things, changes no logic.  Any mention of "book", "view", or "mode" is renamed in relation to "spreads".

The AnchoredBox.jsx file is renamed to Anchored.jsx

Extra icons are deleted, and the remaining ones are renamed.
2024-10-12 23:25:14 -05:00
Gazook89
0855c5c181 remove errant console.log 2024-10-12 23:12:37 -05:00
Gazook89
1741abc3fe Refactor AnchoredBox for greater flexibility
Big change to how the AnchoredBox component is structured so that it can be used in more than just one spot.  Now composed of the wrapper Anchored, with two children AnchoredTrigger and AnchoredBox, each of which can have their own arbitrary children.

Next steps will involve renaming the component file to Anchored.jsx, moving most styling out of the attached stylesheet (and into brewRenderer.less), and adding props to pass in Anchor Positioning properties.
2024-10-12 23:12:27 -05:00
G.Ambatte
63f4104f81 Add UI to Admin page 2024-10-13 13:45:24 +13:00
G.Ambatte
033a089fd8 Merge branch 'master' into refactorVersionHistory 2024-10-13 12:17:27 +13:00
Gazook89
27f471791d Small change in title phrasing 2024-10-12 13:28:25 -05:00
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
Trevor Buckner
35856ad01e Merge branch 'master' into adress-small-accessibility-concerns 2024-10-11 23:50:39 -04:00
Gazook89
a3dbaf9e6a refactor anchoredBox to handle focus
Refactoring the AnchoredBox component because I wanted to set focus on the trigger button when the expanded box was closed.  Wrapping the trigger into it's own component, with forwardRef, allows for passing the `ref` to the actual DOM node.  Then the `.focus()` method will work on it.
2024-10-11 22:34:40 -05:00
Gazook89
835305bcf6 Add a title to each button
add a role to the toolbr.
2024-10-11 22:32:53 -05:00