0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 09:12:45 +00:00
Commit Graph

2231 Commits

Author SHA1 Message Date
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
9b58db9f1e Let sharepage update page numbers 2024-09-27 15:03:29 -04: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
d09cecedd7 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into sort-in-vault 2024-09-20 20:54:14 +02:00
Víctor Losada Hernández
235e3f484f last changes, linted 2024-09-20 20:52:30 +02:00
Víctor Losada Hernández
b53b279241 fix pagination not applying sort 2024-09-20 20:38:54 +02:00
Víctor Losada Hernández
4fd358771a fix class by suggestion 2024-09-20 20:25:33 +02:00
Víctor Losada Hernández
02147411e3 fix sort and dir props 2024-09-20 20:23:58 +02:00
Víctor Losada Hernández
5d68cddd18 update state when necessary 2024-09-20 15:43:19 +02:00
Víctor Losada Hernández
74a065e747 minor css fix 2024-09-20 15:31:19 +02:00
Gazook89
544f4c6103 tweak headers 2024-09-19 15:29:35 -05:00
Gazook89
a6ac6b98c2 some fixes and updates
This fixes something i broke with last commit, but should be final commit.
2024-09-19 11:09:22 -05:00
Gazook89
2336f8508b Rearrange CSS and small HTML changes
Simplified and unified some font-size declarations, adjusted the "descriptions" for various inputs to be similar structure and appearance, change the components h1 label from "Brew" to "Properties Editor", updated the comment about Publishing.
2024-09-19 10:57:55 -05:00
Víctor Losada Hernández
61d77b4d2d fix 2024-09-17 19:55:50 +02:00
Víctor Losada Hernández
a92b44427d lint 2024-09-16 23:17:12 +02:00
Víctor Losada Hernández
5961e9042a merge from master 2024-09-16 23:11:27 +02:00
G.Ambatte
83a7636b6f Simplify historyExists state logic 2024-09-17 07:41:34 +12:00
G.Ambatte
53c05a3ef6 Remove unused default item 2024-09-17 07:27:52 +12:00
G.Ambatte
8ceb422156 Separate bundled setState calls 2024-09-16 19:40:11 +12:00
G.Ambatte
8315df33ae Change empty slot logic 2024-09-16 19:39:51 +12:00
G.Ambatte
59f6f40ace Add seconds to display options 2024-09-16 19:24:39 +12:00
G.Ambatte
91f9a76af2 Remove spaces from code indentation 2024-09-16 19:20:14 +12:00
G.Ambatte
ae7404eb1f Remove comments 2024-09-16 19:15:16 +12:00
G.Ambatte
7a2fecf502 Set archiveBrew object directly
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2024-09-16 19:07:42 +12:00
Trevor Buckner
dfd3b99232 Merge branch 'master' into experimentalLocalStorageHistory 2024-09-16 01:50:54 -04:00
Trevor Buckner
8d479b8cd1 Lint whitespace changes 2024-09-16 01:42:44 -04: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
b5490e3a53 Lint editor.jsx 2024-09-16 01:40:21 -04:00
Trevor Buckner
98c5b798a7 Merge branch 'master' into experimentalLocalStorageHistory 2024-09-16 01:03:29 -04:00
Trevor Buckner
48bdc417fa More logic simplification 2024-09-16 00:39:04 -04:00
Trevor Buckner
25a40e31c5 Remove console logs 2024-09-15 22:31:29 -04:00
Trevor Buckner
a353425d07 More cleanup 2024-09-15 22:13:41 -04:00
Trevor Buckner
c07c02f1d9 Remove unused variable 2024-09-15 21:44:02 -04:00
Trevor Buckner
81ab9417d3 Clean up unused code 2024-09-15 21:42:55 -04:00
Trevor Buckner
85401ba71b Fix BrewRenderer scrolling to 0 2024-09-15 21:26:49 -04:00
Trevor Buckner
84c0242eee Put page jump checks in componentDidUpdate
Jump when the current page for brew or editor changes
2024-09-15 00:13:49 -04:00
G.Ambatte
eddc81d051 Merge branch 'master' into experimentalLocalStorageHistory 2024-09-15 14:23:14 +12:00
G.Ambatte
531e6efa5e Get configuration from config files 2024-09-15 14:19:24 +12:00
G.Ambatte
72257dc71b Lint fixes 2024-09-15 14:09:56 +12:00
G.Ambatte
b456bb955a Initial UI functionality 2024-09-15 14:09:47 +12:00
Trevor Buckner
181c6bf65a Update editor.jsx 2024-09-14 19:15:39 -04:00