google-code-export / minimalist-google-calendar

Automatically exported from code.google.com/p/minimalist-google-calendar
1 stars 0 forks source link

Feature Request: Choose start/end times of day #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In keeping with the minimalist style, the option of defining a day's duration 
other than 0:00-24:00 (or even only the end-time) would be highly appreciated. 
There could be a setting only to show hours outside the preset timeframe when 
there are events there. Alternatively, "moving" a few of the first AM-hours to 
the end of a previous day would also help, as it is not very intuitive to look 
for events around midnight from the next day.

Original issue reported on code.google.com by itali...@gmail.com on 12 Feb 2011 at 11:34

GoogleCodeExporter commented 9 years ago

Original comment by anst...@gmail.com on 13 Feb 2011 at 4:24

GoogleCodeExporter commented 9 years ago
Yeah hiding the hours of midnight to "X"AM would be awesome. as 
I tinkered really quick using just css and a negative 'n' value with the 
":nth-child" pseudo-class but it only worked to remove the hours--the actual 
rows, however, stayed.
btw, by negative n I mean something like "div:nth-child(-n+8) {display: none}"
the resulting sequence would be something like:
-(0)+8= 8th child
-(1)+8= 7th child
-(2)+8= 6th child
etc.. that eqn should hide 12 AM - 7AM if they were controlled by rows

Original comment by mike.ra...@gmail.com on 28 Feb 2011 at 5:53

GoogleCodeExporter commented 9 years ago
They are not controlled by rows unfortunately... The simple table logic is only 
applied to the hour graphic on the left. The background rows are not table cell 
borders but just an image and the events on top of it are absolutely positioned 
divs. The amount of JavaScript it would take to fight with that system does not 
sound fun.

Original comment by anst...@gmail.com on 28 Feb 2011 at 8:08

GoogleCodeExporter commented 9 years ago
Bummer. I'm no good at js, but could you get around the js by pulling all the 
content up?
Nothing springs to mind for me but position: absolute; top: -500px (or whatever 
the rowheight * num of rows equals) would work. to avoid absolute positioning, 
would relative work? or making it a fixed height and putting a neg top margin?

Original comment by mike.ra...@gmail.com on 28 Feb 2011 at 10:58

GoogleCodeExporter commented 9 years ago
It's definitely possible. I haven't looked to much into it yet but after 
Minimalist for Google Reader I'm going to take a break and revisit possible 
feature updates for MinGmail and MinGcal. I'll take a closer look then and 
re-evaluate how much effort it would actually take.

Original comment by anst...@gmail.com on 28 Feb 2011 at 11:33

GoogleCodeExporter commented 9 years ago
Entering 
.tg-timedevents
{ 
position: absolute; 
top: -300px;}
in the custom CSS textbox in extension config page makes the day start at 
around 07:00, until an option is permanently added

Original comment by ozk...@gmail.com on 6 Apr 2011 at 8:51

GoogleCodeExporter commented 9 years ago
That does the trick for now, though i changed it to "top: -294px;} which makes 
it a bit tidier.

Original comment by wainwrig...@gmail.com on 9 Sep 2011 at 2:17

GoogleCodeExporter commented 9 years ago
Sounds fabulous! Except that I have no idea what you're talking about. Any 
step-by-step possible for the tech-illiterate?

Original comment by RANether...@gmail.com on 13 Sep 2011 at 2:35

GoogleCodeExporter commented 9 years ago
In settings, there's a text box that allows for custom css code.
Paste

.tg-timedevents {
  position: absolute; 
  top: -300px;
}

into there.
The default is 0, but -100 will remove a few hours, -200 even more hours and so 
on and so forth. Find a number that works for you.

It's not a perfect solution (for me it screws up the 'add task' popup and I'm 
too lazy to fix it), but it does work.

Original comment by mike.ra...@gmail.com on 13 Sep 2011 at 5:06