Gazook89
5ab867f21e
adjust prev/next page buttons to meet expectations
...
i hope
2024-10-22 22:36:13 -05:00
Gazook89
4126188df1
linting
2024-10-21 22:29:58 -05:00
Gazook89
26050e2134
add comment
2024-10-21 22:20:52 -05:00
Gazook89
5c0d6e6012
move formatting of visible pages to toolbar
...
Doesn't need to be set in brewRenderer state and passed as a prop, when it can just do it's work directly in the toolbar.
2024-10-21 22:18:25 -05:00
Gazook89
de7b13bc15
Add some comments and cleanup
...
Little changes like removing console.logs and adding comments.
2024-10-21 22:13:12 -05:00
Gazook89
822d0c7738
Fix NaN/undefined showing on first load
...
Removes currentPage as a variable since it's been replaced.
2024-10-21 21:27:06 -05:00
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
Trevor Buckner
ac766f3b37
Update brewRenderer.jsx
2024-10-18 10:23:56 -04: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
321bbba4b8
Rearrange
2024-10-15 22:07:41 -04:00
Trevor Buckner
36af1cdb7f
Update brewRenderer.jsx
2024-10-15 21:47:27 -04: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
G.Ambatte
bec830c3b8
Tweak color of Brew Renderer background text
2024-10-12 08:09:51 +13: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
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
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
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
David Bolack
7a37bf47c5
Bodge Render side mirroring back into place.
2024-09-07 21:33:51 -05:00
Trevor Buckner
b124e55b3d
Merge branch 'master' into Issue_241_Part_II
2024-09-06 23:51:14 -04:00
Trevor Buckner
ad8e004fa9
Update Dismisskey for popup
...
Need a new key so this new message will appear again for users who cleared the popup before
2024-09-04 17:16:11 -04:00
Víctor Losada Hernández
cd01014d79
notification
2024-09-04 22:48:39 +02:00
Gazook89
49e072f03f
Add button to toggle Preview tools
...
Toggles a state variable to either visible or hidden which is used to set a related class on the toolbar. The hiding is done with CSS, just reducing the width of the toolbar and the opacity of the tools.
2024-09-04 13:54:55 -05:00
G.Ambatte
cc7fe99760
Initial functionality pass
2024-08-29 21:26:24 +12:00
David Bolack
a4f30d687d
Merge branch 'master' into Issue_241_Part_II
2024-08-28 21:17:10 -05:00
Gazook89
a7ddeafd06
revert change
2024-08-27 11:59:29 -05:00
Trevor Buckner
0ce3ac9be2
Merge branch 'master' into Fix-Toolbar-Positioning
2024-08-27 11:27:36 -04:00
Gazook89
a7c4b78ec8
set position relative, remove padding
2024-08-27 09:03:24 -05:00