Commit graph

190 commits

Author SHA1 Message Date
Nolan Lawson c18168d913
fix: tweak poll results style and fix a11y (#1220) 2019-05-25 13:20:45 -07:00
sgenoud af955492e8 feat: Add poll results to a status (#1219) 2019-05-25 08:36:44 -07:00
Nolan Lawson 692e8b57c3
fix: separate "inline theme" from "default theme" (#1216) 2019-05-25 08:19:11 -07:00
Cătălin Mariș cdade05315 fix: use only one 180x180px touch icon (#1213)
* Include just one 180x180px touch icon`.

  Over time as Apple released different size displays for their
  devices, the requirements¹ for the size of the touch icon have
  changed quite a bit:

   * 57×57px – iPhone with @1x display and iPod Touch
   * 72×72px – iPad and iPad mini with @1x display running iOS ≤ 6
   * 76×76px – iPad and iPad mini with @1x display running iOS ≥ 7
   * 114×114px – iPhone with @2x display running iOS ≤ 6
   * 120×120px – iPhone with @2x and @3x display running iOS ≥ 7
   * 144×144px – iPad and iPad mini with @2x display running iOS ≤ 6
   * 152×152px – iPad and iPad mini with @2x display running iOS 7
   * 180×180px – iPad and iPad mini with @2x display running iOS 8+

  However, most iOS users will be on the latest 2 versions² of iOS
  and using newer devices, so nowadays, one 180x180px touch icon is
  enough.

  Also, if needed, the icon will be automatically³ downscaled by
  Safari, and the result of the scaling is generally ok.

* Remove unneeded `sizes` attribute.

  When using only one touch icon there is no need to use the `sizes`
  attribute.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

¹ https://github.com/h5bp/html5-boilerplate/pull/1599#issuecomment-56384135
² https://developer.apple.com/support/app-store/
³ https://realfavicongenerator.net/blog/how-ios-scales-the-apple-touch-icon/

See also: https://mathiasbynens.be/notes/touch-icons
2019-05-13 21:45:38 -07:00
Nolan Lawson 9e6bc60abe
fix: improve focus style on dialog list item (#1208)
fixes #1201
2019-05-11 10:01:14 -07:00
Nolan Lawson 5f01a1ba96
fix: don't autosuggest when text ends with punctuation (#1207) 2019-05-11 09:18:36 -07:00
Nolan Lawson 89a56678e1
fix: use fibonacci instead of exponential when streaming (#1205)
I dunno if this will improve #14, but it at least aligns us with Mastodon's behavior.
2019-05-10 21:05:26 -07:00
Nolan Lawson b7b9758445
fix: fix some dialog state issues (#1203)
* fix: fix some dialog state issues

fixes #1202

* fix console logs
2019-05-09 20:34:45 -07:00
sgenoud db0f5bf237 fix: Fix ios design issues (#1199)
* Take into account the layout weirdness on iPhones

This makes the menu bar full screen in landscape mode and allow the
snackbar to have enough bottom padding

* Improve the icon for PWA

fixes #1198
2019-05-09 07:34:28 -07:00
Nolan Lawson 4432d49467
fix: fix style of snackbar on mobile (#1197) 2019-05-08 23:35:33 -07:00
Nolan Lawson 43baaf36ae
fix: close IDB connections when page is frozen (#1196)
OK let's try this
2019-05-08 20:53:33 -07:00
Nolan Lawson 70da9a92a6
fix: close/open websocket on freeze/resume events (#1195)
* fix: close/open websocket on freeze/resume events

attempt to address #14

* fix unit tests
2019-05-08 19:58:32 -07:00
Nolan Lawson 0887196db4
feat: add snackbar alert with refresh button (#1193)
* feat: add snackbar alert with refresh button

fixes #77

* fixup

* change refresh to reload
2019-05-08 07:52:12 -07:00
Nolan Lawson c56d561e9d
fix: fix aria-hidden on toast (#1194)
* fix: fix aria-hidden on toast

* fixup
2019-05-08 07:51:53 -07:00
Nolan Lawson 2425ca8f72
fix: make sure sapper crawls nofications/mentions (#1191) 2019-05-06 21:17:46 -07:00
Nolan Lawson de220e7262
fix: throttle XHRs from autosuggest (#1190)
* fix: throttle XHRs from autosuggest

* throttle and abort properly

* add comment

* fix xhr bug
2019-05-06 20:29:43 -07:00
Nolan Lawson cef76e6bba
fix: fix flash of searched content in autosuggest (#1188) 2019-05-06 08:34:20 -07:00
Nolan Lawson 75c3060912
fix: fix autosuggested accounts order (#1187)
new order is local first, followed by remote, and each sorted alphabetically
2019-05-06 08:34:12 -07:00
Nolan Lawson 2abe15cc6f
fix: fix autosuggest width on mobile (#1186)
fixes #1185
2019-05-06 08:34:03 -07:00
Nolan Lawson d83062126a
fix: use inputmode=url for instance input (#1184) 2019-05-06 08:33:53 -07:00
Nolan Lawson 8d0db2c97c
fix: make autosuggestion accessible (#1183)
* fix: make autosuggestion accessible

fixes #129

* remove tabindexes, fix aria-hidden
2019-05-05 22:08:54 -07:00
Nolan Lawson 78715bc098
fix: do remote search when autosuggesting accounts (#1182)
* fix: do remote search when autosuggesting accounts

fixes #1005

* fix emoji search
2019-05-05 19:16:02 -07:00
Nolan Lawson de9faf4678
fix: redesign tabs slightly (#1178) 2019-05-05 12:30:08 -07:00
Nolan Lawson 23bdc6c87e
feat: implement notification filters (all vs mentions) (#1177)
fixes #1176
2019-05-04 17:58:44 -07:00
Nolan Lawson ff1e9e2c41
fix: add tooltip info on what an instance is (#1175) 2019-05-04 14:16:15 -07:00
Nolan Lawson b13f0afc37
fix: fix autofocus in emoji dialog search (#1173) 2019-05-04 12:20:45 -07:00
Nolan Lawson af9cad89d9
chore: update remount to v0.11.0 (#1171) 2019-05-01 18:57:41 -07:00
Nolan Lawson ecaeec226c
feat: add option to disable open graph cards (#1161)
fixes #1155
2019-04-20 09:12:42 -07:00
Nolan Lawson 1712081f0b
fix: fix profile clicks from compose dialog (#1160)
* fix: don't allow profile clicks from compose dialog

fixes #1159

* make the links work correctly in the modal

* fix tests
2019-04-20 09:12:30 -07:00
sgenoud 2ce2453d8f fix: Unstretch the card image (#1157)
Fix #1156
2019-04-20 07:52:14 -07:00
Nolan Lawson 0649eee366
fix: fix dialogs within dialogs not opening (#1154)
* fix: fix dialogs within dialogs not opening

fixes #1153

* remove console logs
2019-04-14 19:47:30 -07:00
Nolan Lawson ddd95aad27
fix: fix modal dialog width (#1152)
fixes #1151
2019-04-14 14:09:10 -07:00
Nolan Lawson b3098c8c5a fix: tweaks to conversations (direct) UI (#1137)
- make the url `/direct`
- call it "Direct messages"
- fix sapper export
- retain DM background color
- add test
2019-04-13 15:30:49 -07:00
Steve Genoud 622dbde258 feat: Adds a basic conversations timeline (#1137)
fixes #639
2019-04-13 15:30:49 -07:00
sgenoud 79184570b1 fix: Manage the width to take scrollbars into account (#1138)
* Manage the width to take scrollbars into account

* Additional modal layout styles changes
2019-04-13 11:02:25 -07:00
sgenoud 5642b10c72 fix: Add hostname when description is missing (#1145) 2019-04-10 07:57:37 -07:00
sgenoud 49b0633a8d feat: Add a shortcut to opening the cards link (#1134)
* Add a shortcut to opening the cards link

* minor aesthetic tweaks
2019-04-10 07:56:24 -07:00
sgenoud e202dd3444 feat: Add a setting to reload the page (#1132)
* Add reload setting

The iOS PWA version does not allow you to reload the page - even with killing
the app. This is useful for reloading new versions of the app (as well as
solving bad transient state issues).

* make href use #
2019-04-08 19:23:16 -07:00
sgenoud 1dec3b55f9 fix: Remove placeholder for cards without images (#1135)
* Remove placeholder for cards without images

* remove no longer needed svg
2019-04-08 19:14:18 -07:00
sgenoud f6c8eb4055 fix: Disable custom scrollbars by default on iOS (#1133) 2019-04-05 09:27:44 -07:00
Nolan Lawson 8549c3a79a
fix: add placeholder icon for opengraph cards without images (#1131) 2019-04-01 20:48:41 -07:00
Nolan Lawson 44c45d0b64
fix: slight tweaks to opengraph card (#1128) 2019-03-31 14:11:24 -07:00
sgenoud 6bae770bf5 feat: Add support for Open Graph cards (#1121)
* Add support for Open Graph cards

* use <strong> and aria-hidden on image to improve a11y
2019-03-31 12:04:24 -07:00
sgenoud 8d012a96f7 fix: Enable PWA support for iOS devices (#1120)
* Enable PWA support for iOS devices

* add sniff for ios <12.2
2019-03-31 10:56:21 -07:00
Nolan Lawson f758e12b24
fix: replace indexWhere with findIndex (#1125) 2019-03-31 09:21:57 -07:00
Nolan Lawson 6744de59f8
feat: add account page filters (#1124)
* start on account page filters

fixes #1021

* making progress

* more progress, just need style now

* fix lint

* fix style and add test
2019-03-30 21:48:49 -07:00
Cătălin Mariș ba0ea7ab83 fix: remove no longer needed initial-scale=1 (#1119)
`initial-scale=1` was a workaround for a orientation change bug,
that was only needed for the no longer relevant Safari for iOS < 9.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Ref:

  * https://www.quirksmode.org/blog/archives/2013/10/more_about_scal.html
  * https://twitter.com/ppk/status/829329567219343360
2019-03-26 18:40:11 -07:00
Nolan Lawson 8fc8108454
fix: back button dismisses the modal dialog (#826)
* fix: back button dismisses the modal dialog

fixes #60

* try to manage nested modals

* seems working now

* fix modal timing issue

* fix test flakiness

* improve test flakiness again

* fix muting timing issue

* Revert "fix muting timing issue"

* remove setTimeout from MediaDialog

* refactor
2019-03-24 15:08:34 -07:00
Nolan Lawson 059b455451
fix: fix and test shortcut keys in modals (#1115) 2019-03-23 18:16:06 -07:00
Nolan Lawson cf104163fe
fix: fix removing emoji from display names (#1114) 2019-03-22 15:55:33 -07:00