Commit Graph
24 Commits
Author SHA1 Message Date
Jed FoxandGitHub d7729d295a RTL for the security badge, add an arrow to the tooltip (#1469)
* FIx RTL on the encryption shield

* Add an arrow to the tooltip
2020-04-21 14:50:08 -07:00
Jed FoxandGitHub f7e3ee2064 Use open-color directly (#1371) 2020-04-11 01:09:29 +03:00
Jed FoxandGitHub 8ce595e5d6 Add rule banning literal text in JSX (#1367) 2020-04-10 12:58:46 -04:00
Jed FoxandGitHub 16a3aa7561 Fix mobile dialog styling (#1363) 2020-04-10 18:13:31 +03:00
Jed FoxandGitHub 136b14cef5 Update shortcut display for enter on Mac (#1358) 2020-04-10 17:13:06 +03:00
Jed FoxandGitHub 663526129a Proper RTL support (#1154)
* Add RTL styles. Most of the work is done by the browser 💖

* Refactor getLanguage

* Additional fixes

* Mirror the mouse pointer icon

* Move the vertical scrollbar to the left on RTL

* Revert "Mirror the mouse pointer icon"

This reverts commit f69b132538.
2020-04-02 12:21:19 -04:00
Jed FoxandGitHub 2f1b706318 Clean up package.json (#1083)
* Remove unnecessary metadata from package.json

* Remove homepage field, sort keys
2020-03-25 19:10:05 +02:00
Jed FoxandGitHub 5b9c18a8b7 Remove support for some older browsers that probably didn’t wor… (#1080) 2020-03-25 17:42:16 +02:00
Jed FoxandGitHub 8a6e2bf9cf Use system fonts where possible. (#1050)
Also put Arial after Helvetica. I hate Arial.
2020-03-22 16:11:21 -04:00
Jed FoxandGitHub daa121e909 Add a warning to encourage people to update translations direct… (#1045) 2020-03-22 14:43:06 +01:00
Jed FoxandGitHub d8bbe536a7 Restyle the mobile UI a bit (#1002)
* Restyle the bottom bar on mobile as an Island

* Shorter label for collaboration button, truncate too-long button labels

* Refactor safe area things to global vars

* Fix scroll bar positioning, don’t block scrollbars with menu island

* Update text
2020-03-18 11:31:40 -04:00
Jed FoxandGitHub e44801123a Restyle the color picker a touch (#920) 2020-03-15 19:26:52 +02:00
Jed FoxandGitHub 668f8ec4a6 Make dialogs look better on mobile (#908)
* Standardize mobile media query

* Refactor & add mobile support to dialogs

* back & close icons
2020-03-13 20:32:47 +01:00
30903fbe04 Fill the resize handles with white so they are visible on dark b… (#894)
* Fill the resize handles with white so they are visible on dark backgrounds

* revert package-lock.json

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-09 21:01:29 +01:00
Jed FoxandGitHub 8ecb4201db How could I have gotten this so wrong? (#873) 2020-03-07 17:37:35 -08:00
c6a0cfc2b1 Refactor (#862)
* Initial factoring out of parts of the LayerUI component

2360 → 2224 LOC

* Create a Section component

* Break up src/index.tsx

* Refactor actions to reduce duplication, fix CSS

Also consolidate icons

* Move scene/data.ts to its own directory

* Fix accidental reverts, banish further single-character variables

* ACTIVE_ELEM_COLOR → ACTIVE_ELEMENT_COLOR

* Further refactoring the icons file

* Log all errors

* Pointer Event polyfill to make the tests work

* add test hooks & fix tests

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-07 16:20:38 +01:00
Jed FoxandGitHub 8d1c897962 Update README.md (#870)
* Update README.md

* Update README.md

* Update README.md
2020-03-06 15:20:02 +01:00
Jed FoxandGitHub 8e0206cc1e Undo/Redo buttons, refactor menu toggles (#793)
* Make Undo & Redo and the menu buttons into actions; add undo/redo buttons

* Create variables for the ToolIcon colors

* Darken the menu buttons when they’re active

* Put the more intensive test in `perform`

* Fix & restyle hint viewer

* Add pinch zoom for macOS Safari

* Chrome/Firefox trackpad pinch zoom

* openedMenu → openMenu

* needsShapeEditor.ts → showSelectedShapeActions.ts

* Call showSelectedShapeActions
2020-03-01 20:39:03 +01:00
Jed FoxandGitHub 74add8661a Fix error on export (#808) 2020-02-22 07:46:12 -08:00
4e489bfb6d Fix zoom being set to NaN (#807)
* Fix zoom being set to NaN

* recover zoom default value on restore if invalid

Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-02-22 14:37:04 +01:00
Jed FoxandGitHub 43236bed68 Fix error with contentEditable (#803) 2020-02-21 19:51:34 -08:00
Jed FoxandGitHub 0fd3fb4b5b More mobile tweaks (#790)
* Disable text selection

* Set content-editable=plaintext-only to disable Touch Bar formatting buttons

* Enlarge resize handle tap targets for pen/touch

* Make the lock button a button in mobile mode

* Use icons instead of Unicode characters; add an alternate toolbar for creating multipoint lines

* Allow buttons to hide themselves

* Fix heuristic for showing shape actions

* Refactor icons

* Fix label for edit button

* Switch edit button icon

* Remove lock button on mobile

* Add language selector on mobile

* Fix showing edit button on mobile

* Fix showing edit button on mobile, part 2

* Fix handle touch regions

* Fix scroll-back button position

* Allow using the text tool on a text object to start editing it

* Fix deletion of last point in line
2020-02-21 11:34:18 -08:00
Jed FoxandGitHub ab176937e6 Add touch support (#788)
* Add touch support

* Mock media query

* Mock media query pt 2

* Fix tests

* Allow installing as an app on iOS

* Fix type error

* Math.hypot

* delete and finalize buttons, hint viewer

* skip failing tests

* skip the rest of the failing tests

* Hide the selected shape actions when nothing is selected

* Don’t go into mobile view on short-but-wide viewports

* lol
2020-02-21 08:17:20 -05:00
Jed FoxandGitHub 7a7a73b78d Initial support for mobile devices (#787)
* Initial support for mobile devices

No editing yet, but UI looks nice and you can open the canvas menu

* Add support for editing shape color, etc

* Allow the mobile menus to cover the shape selector

* Hopefully fix test error

* Fix touch on canvas

* Fix safe area handling & remove unused Island
2020-02-20 15:44:38 -08:00