Commit graph

482 commits

Author SHA1 Message Date
Alexey Skobkin 2d4b11aaee
Adding FictionBook format ("FB2", "FB3") to autocomplete options in "Get a copy" block. 2024-01-25 01:50:10 +03:00
Adeodato Simó f88a0f8229
Run stylelint to fix remaining issues
Including deletion of two duplicate stanzas introduced in 33c13608a8 ("Refixing
light and dark themes").
2023-10-18 20:39:12 -03:00
Adeodato Simó 6392a8e01d
Merge pull request #2032 from viviicat/bw-dev-npm-fix
Conflicts:
	bw-dev
	dev-tools/Dockerfile
	bookwyrm/static/css/bookwyrm/_all.scss
	bookwyrm/static/css/themes/bookwyrm-dark.scss
	bookwyrm/static/css/themes/bookwyrm-light.scss
2023-10-18 18:54:53 -03:00
Sidharth 25e8b259f7 Show/Hide password icon 2023-10-18 21:33:37 +05:30
Adeodato Simó d55e0b6ba3
Final JS update to match 'es5' trailing comma style
This is  follow-up to cd247a668 ("Update .prettierrc").
2023-10-17 17:11:59 -03:00
Jascha Ezra Urbach 4d352faae3
Merge branch 'main' into prettier-trailing-comma 2023-10-17 19:31:24 +02:00
Jascha Urbach 0f79aea36f
introduce .prettierrc
With this pullrequest I introduce .prettierrc with one rule:
'trailingComma': 'none'
2023-10-14 17:52:58 +02:00
Jascha Urbach 97adf2f7fd
I changed my own comments to get rid of this warning which I could have better written in the first place. 2023-10-14 17:21:15 +02:00
FoW d8ba1f4309 Correct EPUB spelling 2023-09-08 22:52:11 +09:00
axiomizer 3ca36fef4d Make copy button screen reader friendly
revert last commit because prettier was run with the wrong version
This reverts commit 5d3883c9a0.
2023-08-01 22:56:05 -04:00
axiomizer 5d3883c9a0 run prettier on bookwyrm.js 2023-08-01 08:09:10 -04:00
axiomizer 9a30a3656a satisfy js linter 2023-07-22 22:34:10 -04:00
axiomizer 1bda8a5d9d Revert part of "Hyphenate ISBN numbers and add copy button" related to hyphenation
This partially reverts commit d2c4785af1.
2023-07-22 14:25:58 -04:00
axiomizer d2c4785af1 Hyphenate ISBN numbers and add copy button 2023-07-21 21:27:46 -04:00
Hugh Rundle 1841d196ff
Ensure report button triggers modal
Clicking on "report" in any context closed the dropdown menu and required a second click on the dropdown to trigger the modal.
With this change, the modal opens as expected.

Reverses part of #2322
2023-06-26 12:22:14 +10:00
Neil Roberts 603b2d9502 Show “no rating” instead of stars if the review has no rating
The stars.html template now outputs a span containing “no rating” when
the stars represent a non-existent or zero rating. This text is already
translated because it was previously added as a invisible text only for
screen readers. The span is given a special CSS class so that it can be
styled as italic in the stylesheet.

There is now also an extra span in book.html to group the stars with the
“(2 reviews)” text. This is needed because the outer div is using a flex
layout and it eats the spacing between the two parts otherwise.

Fixes #2856
2023-05-22 15:40:18 +02:00
Josh Soref e5663f97c5 spelling: remove
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref 182a722a55 spelling: recurring
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref d9a305a0f2 spelling: optimizequality
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref 72c292d2c3 spelling: breakpoints
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Rajat Dwivedi 33c13608a8 Refixing light and dark themes 2023-03-29 10:56:08 +00:00
Jascha Ezra Urbach bbed08e182
Merge branch 'main' into main 2023-03-21 05:49:52 +01:00
Rajat Dwivedi 349c61f698 Updated the _tabs.scss file 2023-03-20 04:11:44 +00:00
Wesley Aptekar-Cassels 43ad3d0c15 Improve polling algorithm
The existing polling code had a few problems:

* It started the timer for a new request when the first request was
  sent, rather than when a response was received.
* It increased the delay regardless of whether the response was a
  success or a failure.

This commit changes it to a more standard exponential backoff system,
where it starts with a 5 minute ± 30 second delay, and uses that same
delay until it hits an error, at which point the delay is increased by
10%. Once it receives a successful response again, the delay is reset to
the default.

I suspect this should be nicer on the server, since it avoids the
initial sending of many requests. After about half an hour of leaving
the page open, the request rate for this new code will be higher than
that of the old code, so it's possible that this may cause problems, but
I think that a five-minute request frequency should be pretty reasonable.
2023-03-07 13:15:52 -05:00
Rajat Dwivedi 7caa60dba5
Improving Feed link UI colours 2023-02-27 20:14:32 +05:30
Dustin Steiner 610a4e8a66
chore: run styling 2023-01-31 18:44:09 +00:00
Dustin Steiner 96097f3b58
chore: use bulma override for mobile dropdown instead of classes 2023-01-31 18:33:44 +00:00
Hugh Rundle 2605b12ed0 fix sass compound selector extensions
Sass changed the way compound selectors can be extended, as outlined here:
https://sass-lang.com/documentation/breaking-changes/extend-compound

This commit aligns the styles in shepherd.scss to the nwe compound selector extension format.
2023-01-28 14:18:05 +11:00
Giebisch 7e7966987b Merge branch 'main' into import-limit 2023-01-02 15:42:50 +01:00
Joachim 00d14cd37c Stylelint 2022-12-23 20:25:42 +01:00
Joachim 91d67b44fd Add back button to user submenu on mobile 2022-12-23 20:17:35 +01:00
Joachim 7f3b208927 Align user menu to the right on mobile 2022-12-23 20:17:12 +01:00
Jascha Urbach 105144a026
New approach: Event Delegation
This works as follows:

The div where the input fields for the subjects live got an id. The script now listens to all keypresses in this div, but only does something if it is within an INPUT field. If it is an INPUT field within this div, it looks for keyCode 13. If it is 13, preventDefault() is triggered.  Else nothing happens.
2022-12-20 11:36:14 +01:00
Jascha Urbach 259ceeea21
./bw-dev prettier 2022-12-20 00:06:02 +01:00
Jascha Urbach e4892701d8
Update forms.js
Now it works in the correct fields.
2022-12-19 23:57:00 +01:00
Jascha Urbach 64968c3081
Update forms.js
fixes #2519
2022-12-18 22:28:05 +01:00
Mouse Reeve d4351cfcb4
Merge branch 'main' into import-limit 2022-12-16 12:44:57 -08:00
Giebisch df54df8309 Added Import Limit 2022-12-15 23:43:25 +01:00
Christof Dorner 13b262bb7b Detect preferred timezone via JavaScript on register 2022-12-11 23:32:07 +01:00
Mouse Reeve 300573e66e
Merge pull request #2457 from viviicat/use-html-templates
make use of templates instead of hidden divs which is more elegant
2022-12-04 11:24:04 -08:00
Mouse Reeve 61d8748d59
Merge pull request #2459 from viviicat/dark-theme-contrast
Dark theme contrast
2022-11-26 20:43:53 -08:00
Vivianne Langdon 56519d569d fix broken css 2022-11-26 15:29:08 -08:00
Vivianne Langdon ab43134cc0 many minor visual tweaks to fix spacing and usability 2022-11-26 15:29:08 -08:00
Vivianne Langdon 6cf028994e dark theme: increase background color darkness, fix shepherd color 2022-11-26 13:18:11 -08:00
Vivianne Langdon c2b447cf49 lint 2022-11-26 12:19:37 -08:00
Vivianne Langdon c4398ff187 make use of templates instead of hidden divs which is more elegant 2022-11-26 12:14:48 -08:00
Hugh Rundle 6baa58260a
2fa qrcode fixes (#2407)
* 2fa qrcode fixes

- add light background to qr code when using dark theme
- show OTP secret code under qr code for manual entry on apps if required

fixes #2386
fixes #2389

* fix code formatting

* revert changes re visible code

This conflicts with an existing PR.

* i code pretty
2022-11-19 09:51:18 -08:00
Mouse Reeve e1f6110dc8
Merge branch 'main' into bw-dev-npm-fix 2022-11-14 09:11:16 -08:00
Olivier Brencklé cfaec434c0 🚸 Close dropdown when opening modal item 2022-10-28 13:15:53 +02:00
Olivier Brencklé 474b78dad2 💄 Set dropdown menu below modals on mobile 2022-10-24 19:34:25 +02:00