Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase maximum number of lines per day #48

Open
dweber-mo opened this issue Oct 27, 2022 · 6 comments
Open

Increase maximum number of lines per day #48

dweber-mo opened this issue Oct 27, 2022 · 6 comments

Comments

@dweber-mo
Copy link

I see that the maximum number of lines per day is 23. Is there a way to increase that? I would like to make hourly itineraries with one line per quarter hour from 0700 to 1800 (45 lines). I know this is a potential heavy lift for reCalendar.me because it is a formatting issue but thought I would ask. I attached a pdf of what fits -- hourly by half our. I hope this ask makes sense.
day by half hour.pdf

@ovidiusoft
Copy link

@dweber-mo check out the following sample page. I have decreased the line height to 15px, which on device is about 5mm. The current design of the header allows exactly 30 lines of text. I find less than 5mm on screen to be to little for my handwriting. Also, I did not touch the header area because the calendar is full of links and it would be become hard to click on them with my fat little fingers :)))

recalendar-space.pdf

The needed changes are in file /src/pdf/components/itinerary.jsx (you can ignore the color change if you like it like that, I just wanted the line to be a lighter share of gray).

diff --git a/src/pdf/components/itinerary.jsx b/src/pdf/components/itinerary.jsx
index 6e7c5f7..2d5b327 100644
--- a/src/pdf/components/itinerary.jsx
+++ b/src/pdf/components/itinerary.jsx
@@ -7,11 +7,11 @@ import { ITINERARY_ITEM, ITINERARY_LINES } from 'configuration-form/itinerary';
 class Itinerary extends React.PureComponent {
        styles = StyleSheet.create( {
                line: {
-                       borderBottom: '1 solid #AAA',
+                       borderBottom: '1 solid #EEE',
                        fontSize: 12,
                        fontWeight: 'bold',
-                       height: 20,
-                       minHeight: 20,
+                       height: 15,
+                       minHeight: 15,
                        padding: '2 0 0 5',
                },
        } );

@dweber-mo
Copy link
Author

Thanks much for sending. I agree with you that when you keep the header (which I think should be kept), the space left below can only accommodate so many usable lines. When you make the height 15px, there are 32 lines now compared to the current spacing allowing 23. I also agree that the 15px spacing is very close to a minimum usable space. So, it looks like my ask for 45 lines of real estate on a page isn't practical with the header size.

Would making a "general" option for standard and narrow line spacing be something that can be easily done?

@ovidiusoft
Copy link

I would love that as well. I don't have enough knowledge of the app to be able to create configurable options, @klimeryk might be kind enough to put it on the todo list 🙏

@dweber-mo
Copy link
Author

I understand completely and am confident I have less knowledge than you. I hope he can as well. Take care.

@klimeryk
Copy link
Owner

It's definitely on the TODO list. I want to first make some fundamental changes to how customization to templates are done 🙇‍♂️ Please bear with me - I'm hoping to have it done before the end of the year. So that folks can start a new year with even more personalized calendars 🙌

@cameronj86
Copy link

It's definitely on the TODO list. I want to first make some fundamental changes to how customization to templates are done 🙇‍♂️ Please bear with me - I'm hoping to have it done before the end of the year. So that folks can start a new year with even more personalized calendars 🙌

Great project! I've managed to go the opposite route and increase the line size (25) and font (14) to make it easier to write w/ using my 8" Boox tablet.

Speaking of the todo list though, can someone point me in the right direction to resize the todo list text within the Weekly view ? It is still using a smaller font but I'm not sure which (portion of the) .jsx files would increase the font size and don't want to break anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants