voussoir
86c09aedc1
Add album_autocomplete.js, so "Add child" box can autocomplete.
...
This makes putting albums together a little easier, though datalist
performance still leaves a lot to be desired.
2020-10-03 18:37:08 -07:00
voussoir
f56da72881
Return more sets from backend, do sorting on frontend.
...
It's better semantically for these items coming out of the backend
to be sets. Sorted lists are only relevant to human consumption at the
frontend.
2020-09-20 13:16:52 -07:00
voussoir
407770a80e
Replace handwritten closest() with native closest().
...
And such a beautiful docstring, too, as if no one had done it before.
2020-09-20 12:23:43 -07:00
voussoir
169fd4945d
Fix drag-drop behavior when dropping onto root.
2020-09-20 12:20:36 -07:00
voussoir
00bc7e6eac
Replace nested if with early return.
2020-09-20 12:15:01 -07:00
voussoir
adb1d0ef39
Replace all double blank lines with single, improve hash headers.
...
There was always some semblance that two blank lines has some kind of
meaning or structure that's different from single blank lines, but
in reality it was mostly arbitrary and I can't stand to look at it
any more.
2020-09-19 03:13:23 -07:00
voussoir
9a29048ccf
Split sticky_side functionality into _side, _bottom.
...
This makes the role of each css definition more clear, and could allow
for cases where the side is sticky in wide mode but not sticky in
narrow mode.
2020-09-18 20:37:40 -07:00
voussoir
f9e4bac186
Use more _form functions instead of inline api.js calls.
2020-09-17 18:14:07 -07:00
voussoir
adbdb3bdb4
Show number of associated directories in alt text.
2020-09-14 20:26:46 -07:00
voussoir
dd0ee7a72a
Use more const.
2020-09-14 18:33:53 -07:00
voussoir
295c9b4956
Add return to all onclicks, and ; to other javascript hooks.
2020-09-04 10:37:04 -07:00
voussoir
9a9edecfd2
Fix album drag-drop when you drag by the thumbnail or other child.
2020-09-03 15:39:34 -07:00
voussoir
8af340e442
Replace non-global uses of var with let.
2020-09-03 15:31:47 -07:00
voussoir
8dafe8c4f4
Synchronize Etiquette common.css and YCDL common.css.
2020-09-03 11:50:16 -07:00
voussoir
48a63a099b
Fix button_with_spinner now uses onclick instead of data-onclick.
2020-08-29 22:27:15 -07:00
voussoir
a66aca8a17
Jankily fix button text causing breakage out of parent div.
...
I described the issue here but have yet to find the correct fix.
https://old.reddit.com/r/css/comments/i4drwa
2020-08-10 21:02:11 -07:00
voussoir
7609f20dd0
Let button_with_confirm inherit original CSS when not specified.
2020-08-07 21:14:27 -07:00
voussoir
7c4229f1fa
Use dot notation instead of subscript for response.
2020-06-28 17:54:16 -07:00
voussoir
47c0a7221c
Prototype of album drag-and-drop moving.
...
I'm not entirely happy with the way that native drag-and-drop looks,
the transparent bit that you hold while dragging looks dumb.
Will have to look into control / shift clicking to multiselect.
Also just using browser confirm() for now since I haven't made my
own dialog for that kind of thing yet.
2020-01-14 23:04:22 -08:00
voussoir
fcf7a460b2
Unify album_card and root_album_card macros.
2019-12-21 01:47:33 -08:00
voussoir
1a395886ef
Set !important on #content_body regrids for stickyside pages.
2019-08-26 15:18:33 -07:00
voussoir
ced98d0c42
Use grid-row-gap instead of not last margin-bottom.
2019-08-25 18:00:36 -07:00
voussoir
b67aa63b26
Add a comment explaining this css.
2019-08-25 17:47:02 -07:00
voussoir
d5c99b407d
Set margin:0 for the inputs next to the buttons
...
Otherwise they've got odd spacing, and we have row-gaps anyway.
2019-08-25 17:36:05 -07:00
voussoir
600cb45ddb
Add grid-row-gap between album toolbox buttons.
2019-08-25 17:23:33 -07:00
voussoir
79ed0ee186
Various CSS for panels and margins.
2019-08-14 13:49:08 -07:00
voussoir
b683413be0
Try different themes with the ?theme query.
2019-08-14 13:43:35 -07:00
voussoir
349fb33199
Disable directory refresh button if no directories.
2019-06-15 17:03:23 -07:00
voussoir
7bd9d45863
Say "Create album" instead of child on main albums page.
2019-06-15 17:03:07 -07:00
voussoir
8063f338f8
Add Refresh Directories button to album toolbox.
2019-06-15 16:04:33 -07:00
voussoir
c7e4bf16d2
Pull spinner code into own file spinner.js.
...
For the purposes of editor.js this does not bring much improvement,
but now I can easily make spinners for other things.
2019-04-27 15:42:02 -07:00
voussoir
09e80f5dba
Replace bespoke add_, create_child buttons with confirm buttons.
2019-04-27 15:33:28 -07:00
voussoir
1b5770b81a
Somewhat improve appearance of album cards on narrow screens.
...
Previously, on very narrow screens, the album cards were spilling
out of the container. Now they are better contained but I am
still not 100% satisfied with the margins between them.
2019-03-16 13:07:00 -07:00
voussoir
cc98def9fb
Remove margin-bottom from last child of #left.
2019-03-16 12:24:50 -07:00
voussoir
59901cb344
Give #left a right margin instead of 95% width & centering.
2019-03-16 12:24:19 -07:00
voussoir
a0faec9639
Have album editor show errors on non 200 responses.
2019-01-13 14:44:21 -08:00
voussoir
c8f7239e19
Remove unnecessary margin-top from #left elements.
...
margin-bottom is enough to keep the space between elements,
margin-top was just adding an ugly distance from the header.
2019-01-01 17:21:44 -08:00
voussoir
669247415f
Add counts to the parent and child hierarchy headers.
2018-12-23 16:00:28 -08:00
voussoir
1f45be9c39
Provide #right first, since #left is often slower to load.
2018-11-17 17:52:40 -08:00
voussoir
e562658d42
Remove unnecessary extra indent.
2018-11-17 17:36:47 -08:00
voussoir
5dcb86eed5
Rearrange some css.
2018-11-17 16:57:07 -08:00
voussoir
3788c844bf
Let album title editor use same font size as title itself.
2018-11-17 16:55:47 -08:00
voussoir
074594a8bc
Fix #right button_with_confirm from width-jumping on load.
...
And any other similar element.
2018-11-17 16:53:35 -08:00
voussoir
e25e0798c9
Add editor button placeholder to stop page jump on load.
2018-11-17 16:50:41 -08:00
voussoir
707fdcc637
Add album cards and improve album pages.
...
- album card has placeholder for future thumbnail.
- replaced nested tree hierarchy lists with separate boxes.
- list/grid view also applies to the root listing.
- added a sticky right panel for all the tools. not pretty yet.
- mechanism for adding sticky panel changed. instead of applying
it to the #right, you apply it to #content_body so that its
grid layout can be updated properly.
2018-11-12 22:15:59 -08:00
voussoir
dcfa7a862d
Variety of html, css, jinja tweaks.
2018-11-04 18:36:17 -08:00
voussoir
588bf59b88
Variety of html, css, jinja tweaks.
...
- common.css, removed html and body margins so that using
full height #content_body will not create a scrollbar.
Simplifies the "fill remaining space" construct I use a lot.
Added more css variables, I'm thinking about future theming.
- photo_card.css, slightly heightened to improve name clipping.
- clipboard.html, added a small screen mode.
- login.html, centered the boxes and fixed message area being
too small due to a previous change.
- search.html, simplified some conditional texts.
2018-10-21 18:46:27 -07:00
voussoir
f9b3f8b0f4
Oops, add missing parentheses to album paste/unpaste buttons.
2018-10-20 02:27:15 -07:00
voussoir
3a9ab2b099
Rename photoclipboard.js -> photo_clipboard.js.
...
To match the namespace photo_clipboard.
2018-09-23 15:17:31 -07:00
voussoir
616c490391
Merge albums.html and album.html, remove album.js.
...
The markup for the album listing page and individual album page
were different enough that I decided to make them wholly separate,
but then this left the shared javascript in its own stupid file
unlike any of the other types.
So, I'm merging them as a huge jinja if-else, which is also dumb
but it feels better than all these separate files.
2018-09-23 15:13:31 -07:00