Commit graph

24 commits

Author SHA1 Message Date
Pedro Pinto Silva
175ac6e740 CSS lint: Code refactoring
- Detected many duplicated selectors within the same file (squashed them)
- Detected inconsistency (sometimes spaces sometimes tabs). Tabify as in JS.
- Detected quotes' inconsistency (sometimes none, sometimes '', sometimes ""). Use '' as in JS
- Avoid touching on files from 3rd party sources (jquery, w2ui), ignore files

Change-Id: Idd82945f29ac6c5c9f522e5d5df4a783a367654d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102009
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
2020-09-08 17:02:30 +02:00
Pranam Lashkari
9994a5f0e5 leaflet: make slide selected border visible
Change-Id: I5778dd2b212eeaf9789219201cb60630859749d3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94595
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-06-10 12:33:58 +02:00
Jan Holesovsky
53a668b179 mobile: Drag and drop target is smaller on mobile.
Change-Id: Ic17eac122578bbefed75e1b8a9569d3ae622cbc4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91574
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-02 16:37:59 +02:00
Jan Holesovsky
7cd2beb866 mobile: Handle the portrait / landscape for slide sorter in JS too.
Change-Id: I214501fac516f4d581d3c1e8a95650a87db1a4aa
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91570
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-02 16:37:45 +02:00
Pranam Lashkari
4a05263ff8 leaflet: solved Slide previews being cut off in vertical orientation
Change-Id: Id288529d03301e5a13479fa27b96cf3c1a6f1ec1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91187
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-31 10:56:21 +02:00
Pranam Lashkari
439ce089f2 leaflet: slide previews in impress adjusted to fit
In mobile vertical view impress slide previews were not visible

Change-Id: I24420577769e1124f9c7004ced54786522aa4bce
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89758
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-03-06 14:52:19 +01:00
Tor Lillqvist
dd70a89a60 Revert the changes that removed the menu bar on iPad in the iOS app
Change-Id: Ic374514bfdde4682f88b507eca82cf88df36bc9a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89329
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-24 12:19:27 +01:00
mert
d21a13e76e Fix slide-sorter behaves like desktop on larger screen phones
Change-Id: Ief2a5278b901970378a84dc4a2f528f885e1cd06
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88093
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-19 18:11:22 +01:00
Tamás Zolnai
364623c87f mobile: Fix css media rules to work with mobile emulation / cypress test.
Restore the media rules we used earlier for mobiles.
So for mobiles it's enough to have a small screen size,
for tablet we allow bigger screen size, but only with
special pointer properties.

Change-Id: Ic45f05c516ec44cd39c58463d8bf1907ec63c25a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88922
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 14:31:00 +01:00
Tamás Zolnai
1999f12b35 Revert "Revert "Mobile: change all media queries to:""
This reverts commit 55d067bfee.

Change-Id: I2077276e70e16324031b393a58bf802c3efdcb4f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88921
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 14:30:42 +01:00
Tamás Zolnai
55d067bfee Revert "Mobile: change all media queries to:"
This reverts commit ef48e44c0e.
2020-02-18 09:19:34 +01:00
Pedro Pinto Silva
ef48e44c0e Mobile: change all media queries to:
- Include phablet size
- Ensure that the mobile css rules do not kick in when on Desktop (900px window)
-- Detect if the primary input mechanism cannot hover at all or cannot conveniently hover (hover:none)
-- Detect if at least one input mechanism includes a pointing device of limited accuracy (any-pointer:coarse)

Change-Id: Idf1494acbd52ecd40e9082c8cf6f4ce88ecf9ac6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88862
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-17 15:53:33 +01:00
Tamás Zolnai
c231d68eb4 Slide-sorter: mobile: Make the slide previews smaller in landscape mode.
So they are not cut by the document area.

Change-Id: Ie53f693fc6ff4ccf8a4a86e1100860c3907f4a3a
Reviewed-on: https://gerrit.libreoffice.org/85438
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-18 23:37:25 +01:00
Pedro Pinto Silva
e73c672149 impress: slide preview: add left margin
Change-Id: I380d4b5ca988247a0beede6fc427e83a48601169
Reviewed-on: https://gerrit.libreoffice.org/83320
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-20 15:40:31 +01:00
Pedro Pinto Silva
11df151290 * Ensure that any rule from mobilewizard does not spill out from smartphone range
* Fix impress slide previewControl misalignments (on desktop)

Change-Id: I009b75ba95870e3bd051b299113c90abb584c189
Reviewed-on: https://gerrit.libreoffice.org/83317
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-11-20 15:32:31 +01:00
Henry Castro
35f2e56d82 loleaflet: mobile: apply CSS @media rule for portrait and landscape in
Impress document

When mobile device change orientation the client browser will apply the
corresponding @media rule.

Change-Id: I96b9d8fe7152833287de1be3a81d7423d22fc4c9
Reviewed-on: https://gerrit.libreoffice.org/82014
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:26:31 +01:00
Henry Castro
324c7342fe lolleaflet: mobile: show horizontal orientation the slide sorter
In order to show a slide sorter, it is necessary to reuse the code that
it is working for desktop view.

changes:

* modified the @media properties of the slide sorter container element.
* added new @media properties for slide-sorter element.
* changed the axis direction to 'x' for the mCustomScrollbar
* changed the calculation using left, right and width properties for the
direction 'x'
* added options maxWidth and maxHeight size for the image preview,
default 60, 60 for mobile case

Change-Id: I23a83c831c9aa21ab2876f9d1875c7428c17d18d
2019-10-09 12:39:43 +01:00
Tor Lillqvist
ef98d92cb9 tdf#127942: Make the slide preview image dropsite larger on larger displays
This makes it easier no notice when a dropsite becomes active.

Change-Id: Iabf529d4af814c0cd348b201b823dca4bcaa1bb5
Reviewed-on: https://gerrit.libreoffice.org/80203
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2019-10-05 11:40:45 +03:00
Jan Holesovsky
0e7df8938a slide sorter: Let's not use red to indicate the drop area.
Change-Id: I7416a1cc856b63698e7acd12fcecdb4a5abf2f5f
2019-09-29 15:45:14 +02:00
Ashod Nakashian
27d780747b loleaflet: add sidebar
(cherry picked from commit 01c828c911fa70b263fee699efbc656fde54d03f)

Change-Id: Idc215e67b21b1f0ba48b3d391041278dd6526cfe
2019-09-03 01:00:05 -04:00
Ashod Nakashian
11335b0e20 leaflet: make the slide drop sites more visible
Change-Id: Idc8e2ee33fc61449300180e8200f5aa75b82f07e
Reviewed-on: https://gerrit.libreoffice.org/69638
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/71102
2019-08-17 04:42:25 +02:00
Ashod Nakashian
d45ecd586c wsd: leaflet: track multi-selection
Change-Id: I17c092e950fb4d7a0cb4129c537d60a8e5edd06a
Reviewed-on: https://gerrit.libreoffice.org/69636
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/71100
2019-08-17 04:41:36 +02:00
Ashod Nakashian
2eab5cea76 wsd: leaflet: support reordering of slides via drag-and-drop
Change-Id: I1b471ba07dd0a1016a0759de729171ae968262cb
Reviewed-on: https://gerrit.libreoffice.org/69635
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/71099
2019-08-17 04:33:04 +02:00
Henry Castro
8618885b31 use Makefile to build loleaflet
Concatenate and minify all javascript files in the release build but not
in the debug build. Also, it is enabled to use a build directory

Change-Id: Ia120447a827cfe236241ddf188bf43a088f877a7
Reviewed-on: https://gerrit.libreoffice.org/52802
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2018-05-10 20:30:16 +02:00
Renamed from loleaflet/dist/partsPreviewControl.css (Browse further)