Commit Graph

116 Commits (84d966ff3dec99690f83ba2ea9951e5766c98461)

Author SHA1 Message Date
voussoir 400c255aea
Add "Show in folder" button to photos, albums. 2021-02-25 18:57:41 -08:00
voussoir 6c2da7a6f0
Move album drag-drop functions to cards.js. 2021-01-25 13:46:24 -08:00
voussoir 6a41e4b0f1
Add UI for set Album thumbnail, display in hierarchy_self. 2021-01-21 15:42:33 -08:00
voussoir 322d459063
Add UI for remove thumbnail photo. 2021-01-20 19:07:37 -08:00
voussoir 5e7b90cbe4
Combine all card templates into cards.html. 2021-01-20 18:26:42 -08:00
voussoir b96f0cfc96
Put toolbox hide logic into album_card_tools, not remove button. 2021-01-20 18:26:42 -08:00
voussoir de93f81331 Rename these functions to _form. 2021-01-10 14:49:35 -08:00
voussoir fd6375613a Add album's author and date to the page. 2021-01-09 10:50:52 -08:00
voussoir fabbbaf17f Rename photo_cards.css -> cards.css. All types welcome. 2021-01-08 13:40:34 -08:00
voussoir 84a5e2b4e1 Significant updates to editor.js. 2021-01-01 19:46:06 -08:00
voussoir 12ee2adedf Add alertresponse to a lot of callback functions. 2020-11-06 22:50:05 -08:00
voussoir 68b27fced2 Add refresh_or_alert so errors aren't missed. 2020-11-06 21:42:28 -08:00
voussoir 7770f7640a Add class photos_holder which is centers photos in narrow mode.
In narrow mode, it's very possible to wind up with only 1 photo per row,
and it looks silly when they are left-justified. Centered looks a little
more natural to me in this case.
2020-11-04 17:11:48 -08:00
voussoir a0207c52f2 Reduce grid-row-gap from 30px to 8px. 2020-11-04 16:56:24 -08:00
voussoir 41b03f46b9 Use more class=panel throughout ui. 2020-11-03 16:25:04 -08:00
voussoir c146e0d1b9 Rename instances of Editor variables to clarify what they are. 2020-10-17 17:26:07 -07:00
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