Commit Graph

84 Commits (03ae8325c9fd854fdb493732f04c2862f8b8317f)

Author SHA1 Message Date
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
voussoir 3db5c77c2c Use a CSS var for 10% transparency and drop shadow. 2018-09-22 16:01:34 -07:00
voussoir 8fdbd49f70 Minor html and style fixes.
Applied wrapping to the description <pre>s,
removed some css that referred to nonexistent things,
move some element tags inside the {%if%} that fills the contents.
2018-08-17 22:05:16 -07:00
voussoir f047235c48 Reorganize a bunch of javascript handlers.
The javascript is very inconsistent between pages. I'm trying to
start using a consistent pattern where the api call is kept in a
separate function from the ones that buttons and input boxes
talk to.
2018-07-29 01:25:53 -07:00
voussoir 949f7177de Add css class gray_button, for more neutral / cancel actions.
Red seems too aggressive and indicates danger when not appropriate.
Gray seems better for reverting to an already safe state.
2018-07-28 20:18:10 -07:00
voussoir dfff79baa7 Oops, fix broken clipboard reference due to namespace change. 2018-07-28 16:15:15 -07:00
voussoir 9c354249c9 Rename variable editor -> ed to avoid conflicting with the module.
Even in cases that were not causing problems, for consistency.
2018-07-28 15:17:18 -07:00
voussoir c840845c7d Add namespacing to albums.js. 2018-07-22 20:21:00 -07:00
voussoir 63a3ecfa88 Add namespacing to editor.js. 2018-07-22 20:21:00 -07:00
voussoir c7cce5a4e5 Add namespacing to common.js. 2018-07-22 20:21:00 -07:00
voussoir 4c65ccaf68 Big! Liberate Groupables from strict heirarchy. Multiple parents.
I found that the strict heirarchy was not satisfying the situation
where one tag is the intersection of two others, but we can only
pick one as the parent

For example, does red_jacket belong under clothes.red_clothes or
clothes.jackets? A search for "red_clothes AND jackets" might
give us someone wearing red pants and a black jacket, so this
definitely needs to be a separate tag, but picking only one
parent for it is not sufficient. Now, a search for red_clothes
and a search for jackets will both find our red_jacket photo.

The change also applies to Albums because why not, and I'm sure
a similar case can be made.

Unfortunately this means tags no longer have one true qualname.
The concept of qualnames has not been completely phased out but
it's in progress.

This commit is very big because I was not sure for a long time
whether to go through with it, and so much stuff had to change
that I don't want to go back and figure out what could be grouped
together.
2018-07-20 13:09:06 -07:00
voussoir 5c97086df3 Improve hotkey framework by making own file & register function. 2018-07-14 14:19:13 -07:00
voussoir 50592f0ab4 Rework tab titles from "Album X" to "X | Albums" etc.
To prioritize the most unique and relevant piece of information.
2018-04-27 20:04:24 -07:00
voussoir f77ab51b14 Add Album.has_any_photo and has_any_subalbum_photo. 2018-04-15 02:41:24 -07:00
voussoir c1fd863999 Add jinja_filters.py with bytestring. 2018-04-15 00:59:54 -07:00
voussoir 4fcb524211 Show number of photos in h3 on Album page 2018-04-06 21:50:13 -07:00
voussoir 6ee86431e5 Add Album.normalize_title and _description. 2018-03-23 00:35:55 -07:00