Víctor Losada Hernández
3e76046868
Revert "renamed client to src"
...
This reverts commit c28736bd01 .
2026-02-01 17:36:53 +01:00
Víctor Losada Hernández
c28736bd01
renamed client to src
2026-02-01 17:34:50 +01:00
Víctor Losada Hernández
955457f22f
some more fixes
2026-01-20 22:31:28 +01:00
Víctor Losada Hernández
fc8656e05b
all imports
2026-01-20 22:14:34 +01:00
Víctor Losada Hernández
0d6c3c7e33
fix module.exports
2026-01-20 19:56:37 +01:00
G.Ambatte
328e071268
Update BrewRenderer toolbar keys
2025-09-10 19:22:54 +12:00
Víctor Losada Hernández
d7585767c9
remove too strong shadow
2025-06-25 16:58:24 +02:00
Víctor Losada Hernández
13702a2f62
last thing
2025-06-25 16:54:56 +02:00
Víctor Losada Hernández
c2cf695c17
add defaults
2025-06-02 13:50:51 +02:00
Víctor Losada Hernández
5fb20991bb
fix ttolbar visibility storage
2025-05-07 11:57:51 +02:00
Víctor Losada Hernández
75fe7b2c67
increase visibility of toolbar toggle
2025-05-07 11:57:41 +02:00
Víctor Losada Hernández
32f8c18adc
Merge branch 'store-toolbar-state-in-storage' of https://github.com/naturalcrit/homebrewery into toolbar-few-fixes
2025-04-22 00:43:09 +02:00
Víctor Losada Hernández
0aead96dcf
fix columnGap
2025-04-22 00:42:48 +02:00
Víctor Losada Hernández
1e34e85aab
actually fix it
2025-04-21 22:23:55 +02:00
Víctor Losada Hernández
b747968e74
fixing toFit to actually fit in any mode
2025-04-21 22:17:52 +02:00
Víctor Losada Hernández
25629173c9
Merge branch 'store-toolbar-state-in-storage' of https://github.com/naturalcrit/homebrewery into toolbar-few-fixes
2025-04-21 20:45:54 +02:00
Víctor Losada Hernández
96642c07d3
initial attempt at facing width button
2025-04-21 20:45:48 +02:00
Víctor Losada Hernández
9b4047f3f9
small css changes
2025-04-21 20:12:42 +02:00
Víctor Losada Hernández
551763fecb
initial commit
2025-03-19 14:04:29 +01:00
Víctor Losada Hernández
163e3927b5
style lint
2025-03-18 19:38:58 +01:00
G.Ambatte
cf16566da8
Move Header Navigation button to Toolbar
2025-01-06 22:30:03 +13:00
Trevor Buckner
8159c408c8
Move formatVisiblePages
...
After simplifying, this has become a single-line function used in only one place. Can just be placed directly in the one place it is used.
2024-12-24 00:24:52 -05:00
Trevor Buckner
0632d78f71
Remove toolbar checks for empty visiblePages list
...
With `centerPage`, ToolBar will never receive an empty visiblePages array. No need to check if visiblepages.length == 0
2024-12-24 00:18:37 -05:00
Trevor Buckner
c0155052ea
Further simplifying
2024-12-24 00:06:30 -05:00
Trevor Buckner
628b2542a0
Simplify logic for previous/next buttons
2024-12-24 00:02:55 -05:00
Trevor Buckner
d588a92147
Change page range to only display a single range
...
Having multiple page ranges visible is a weird edge case that only happens in two-page view. Simplifying logic to just group all page ranges together if a middle page is partly obscured.
2024-12-23 18:37:20 -05:00
Trevor Buckner
1b10a4001a
Merge branch 'master' into pr/3845
2024-12-23 11:37:40 -05:00
Trevor Buckner
aa951ff96c
Small cleanups
2024-12-09 17:04:16 -05:00
Trevor Buckner
bae9fe939d
Merge branch 'master' into Intersection-Observer
2024-12-09 16:16:11 -05:00
Víctor Losada Hernández
2c5c3d40df
revert toolbar changes
2024-12-09 22:08:39 +01:00
Víctor Losada Hernández
eca0f59b40
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into adress-small-accessibility-concerns
2024-12-09 21:52:25 +01:00
Gazook89
9bc4b1fb56
Changes to core.less, reset.less, and toolbar
...
Making some changes to the reset.less so that some default UA button styling is removed.
Then, changing core.less so that the classic "HB" button styling is scoped to a certain class `.colorButton`. This will make it easier to use the button element in other places.
2024-11-10 21:48:01 -06:00
Gazook89
28855d02a6
dynamic text input width to match characters
2024-11-07 19:46:07 -06:00
Gazook89
650ec04417
fix 'disabled' attribute on min/max of page range
2024-11-07 18:56:19 -06:00
Gazook89
9ef11bca99
lint and refactor
2024-11-07 10:40:44 -06:00
Gazook89
88b34a7ba3
Fix 'current page' input when zoomed in close
...
When the page is zoomed in very close, such that <30% of the page is in view, it doesn't register changes to the 'current page'. This fixes that, passing in the 'centerPage' if 'visiblePages' is empty.
I don't love this fix, i think the visiblePages should always have *something* in it, but I can't quite figure out how to set that (since the normal update to visiblePages is happening in an observer that doesn't fire if nothing is in view).
2024-11-07 10:17:43 -06:00
Gazook89
63add047b6
'fit page' zoom button fits two pages in "facing" spread
...
If the 'facing' spread is active, the 'fit to view' zoom button fits two pages side by side in the view, rather than setting only one page in view.
2024-11-06 23:03:24 -06:00
Gazook89
3818424251
Adjust "next page" button
...
Prior to fix, the "next page" button in the toolbar wouldn't work well if there were multiple pages in view that were in a single 'row'. This is because the logic is to take the pages that are "visible", take the max of those pages, and then scroll to that page. But the issue is that if the 'max' page is in the same row as other pages, the range of visible pages doesn't change....the max will always be the same.
So the change here basically runs the scroll function twice-- if the first run results in the same 'max' page as before the scroll, it runs it again but with the target page being "max + 1", which will bump the target to the next row.
2024-11-06 21:24:18 -06:00
Gazook89
93b9f1d1da
Merge branch 'Intersection-Observer' into Observer-Master-merge
2024-11-05 14:03:09 -06:00
Gazook89
b098d28407
linting
2024-11-04 14:08:06 -06:00
Gazook89
1be1b3b747
small accessibility changes.
2024-11-04 13:55:18 -06:00
Trevor Buckner
f63d2de8f4
Refactor toolbar view options ( #2 )
...
* Refactor toolbar view options
* Remove a couple more unused states
2024-11-01 22:19:48 -05:00
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