Commit graph

87 commits

Author SHA1 Message Date
Pranam Lashkari
edc2b3c53e resolved: No avatar in comments/changes
Change-Id: Icbdffdfa4567364f306a5f94b5788fce2c43388e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/85661
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-01-22 17:23:14 +01:00
Tor Lillqvist
ebaca16c4f tdf#128509: Make the column and row headers tappable on touch devices
After you have sleected a table on a text document in the iOS (and
Android) app, you are supposed to be able to tap the "header"
rectangle that is painted for each column and row, in order to select
the whole of that column or row. But this worked only in web-based
Online with a desktop browser, for clicking it with a mouse.

Was much more complicated than expected. But now it seems to work. One
needs to use Marker instead of Rectangle.

Change-Id: I4f701c70dd4edce6a3edb6fcf9feffa7b7969a8c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87079
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-01-21 10:26:58 +01:00
Henry Castro
23ccef0ac7 loleaflet: android: hide slide sorter if it is a small window size
The android browser application changes the orientation when the
soft keyboard pop ups, it has been given a heuristic number 2/3 screen height
to hide the slide sorter, this is because there is a header size
that show the URL bar and it can be improved to the equal screen size of the
native Android app.

Change-Id: I182795fe698bf191cd5b675c1768820ab78b1602
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/85333
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2020-01-06 19:40:44 +01:00
Pedro Pinto Silva
e981bf26b3 Desktop: Document-container: Fix missing text cursor on text document types
- make sure document container has doctype class every time
- set auto cursor for spreadsheet and presentations only

Change-Id: I2cb7b0bdaefa51e01745291c78501a7495da2289
Reviewed-on: https://gerrit.libreoffice.org/85515
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-12-19 12:43:49 +01:00
Pedro Pinto Silva
9fa14f7c24 Annotations: User Avatar: Fix broken image and set border to its parent instead of applying to the image itself
Change-Id: I04bbf704c981d80b04f2e003905129b857b28316
Reviewed-on: https://gerrit.libreoffice.org/85376
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2019-12-18 12:07:40 +01:00
Ashod Nakashian
d1da3ac1a2 leaflet: sidebar scrolling improvements
The browser has to move the sidebar to accomodate
scrolling, and this movement makes the sidebar
overlap with the document (specifically, the
scrollbar of the document) and causes other visual
glitches.

We now display a scrollbar at all times to make
the sidebar width fixed and also to avoid flickering.
This is the only portable/reliable way of avoiding
flickering/jumping-around due to scrollbar showing
and hiding. (Previously we had extra space in the
parent, but at least in Chrome it now always pushes
the canvas left when showing the scrollbar anyway,
so we gain nothing but having a thin margin on the
right, and we still got shifted left/right when
the scrollbar show/hide.)

Change-Id: Icbec841ffa4cec255e59f547530728f076d2877e
Reviewed-on: https://gerrit.libreoffice.org/84713
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2019-12-08 22:39:13 +01:00
Tamás Zolnai
98cbd80eb8 Context menus: Show a tick mark for checked menu item.
Change-Id: I390a69b9db1c58003d2008a4a62e331d1c2fc7ae
Reviewed-on: https://gerrit.libreoffice.org/84323
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2019-12-03 12:20:53 +01:00
Iván Sánchez Ortega
55ac3da53f loleaflet: Draw column/row grid lines on the background
Based on information from UNO ViewRowColumnHeaders messages, this draws
the grid lines with Leaflet's SVG polylines, in a background pane.

To prevent visual glitches on touchscreens, this also reverts parts of
26aad36771ebd5a304b763912184acd2ea26dfdf - that introduced a regression
that prevented 'dragend' events from being fired when inertia-dragging.
Instead, inertia drag is disabled in the L.Map constructor.

[ Miklos: cherry-pick these early as they prevent automatic merging. ]

Change-Id: I86c68214822a0a2c2f8ced82ccf5a6c201e2cf04
2019-11-13 16:58:15 +00:00
Jan Holesovsky
1040353fde More reliable way of theming the comment buttons.
Change-Id: I9c8e81a494733ec343b42596a19b1e90fa2b00d5
Reviewed-on: https://gerrit.libreoffice.org/82593
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2019-11-13 15:36:47 +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
d8833d39d3 loleaflet: mobile: avoid hardcoding CSS bottom property
Use the CSS class selector to modify the bottom properties for
each tile layer document, so adjusting values for portrait or landscape
orientation not be so complicated.

Change-Id: I900ef5c4ec3f770fd802a23238fdd9e6eb838772
Reviewed-on: https://gerrit.libreoffice.org/81928
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-11-04 22:25:50 +01:00
Henry Castro
97b6782ee5 loleaflet: mobile: slide sorter is visible in view mode.
Adjust the CSS property readonly at the bottom and change dynamically
the document size dynamically to show the slide sorter in view mode.

Change-Id: If49d682bcd1eed94443a5d8f8b20420744ba60f4
Reviewed-on: https://gerrit.libreoffice.org/81691
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-29 16:17:32 +01:00
Pedro
d7b4a92550 Disable tooltips when on touch devices
Change-Id: I2a87a275b361fc2b81722bd25f09fd0f1baffcda
Reviewed-on: https://gerrit.libreoffice.org/81044
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-21 14:39:44 +02:00
Pedro
25a23224d9 Fix z-index: about dialog, hamburger menu were appearing under edit FAB
Change-Id: I0ef992ab221e3e3d96e1f35baa8c314fadd2e02f
Reviewed-on: https://gerrit.libreoffice.org/81034
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-18 12:57:37 +02:00
Pedro
43cede22cb Fix z-index: about dialog, hamburger menu were appearing under edit FAB
Change-Id: I9590494769ab9cd629137bfdcb9bdd2dca0bcfec
Reviewed-on: https://gerrit.libreoffice.org/80973
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-17 17:23:09 +02:00
Henry Castro
d3c1062f56 loleaflet: mobile: remove the static CSS height and width properties of
slide-sorter element

Unfortunately the static properties affect the spreadsheet and writer
views, and it is prefereable to change it dynamically when the impress view is
loaded. So the other views will have an empty slide-sorter element.

Change-Id: I03a969c6de74999509314184a4aad9bc5c9e3380
Reviewed-on: https://gerrit.libreoffice.org/80546
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-10-09 15:50:51 +02: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
Pedro
25572e7e25 Decrease toolbar-up icon spacing, update contacts svg color, fix icon alignment, tweak hamburger
Change-Id: I9a4d24ad2335e9936df372a5168993215d68c366
Reviewed-on: https://gerrit.libreoffice.org/80430
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-08 10:55:53 +02:00
Pedro
18550dbeff Formulabar: Increase space between icons while making better use of white space
Change-Id: I1dd0f988e0558af2d8e79dcb6823c70555130715
Reviewed-on: https://gerrit.libreoffice.org/80188
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-10-07 15:32:06 +02:00
Tomaž Vajngerl
d1eaa895aa tdf#125565 Added table move marker
Change-Id: Iffa1b969986c9f9b405d5713b56a192a1069645f
Reviewed-on: https://gerrit.libreoffice.org/79821
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-09-30 00:39:11 +02:00
Szymon Kłos
e3a01b7561 jsdialogs: Mobile Wizard
Change-Id: Ida2dc48d86ea4f28b08ec24a7638f27ad8633dbf
Reviewed-on: https://gerrit.libreoffice.org/79723
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-09-27 17:03:06 +02:00
Szymon Kłos
652ae5c68f Sidebar: don't show border and placeholder if not visible
Change-Id: I689fa47b0dcb034688ec73c0d338c99423b10a38
(cherry picked from commit 9b31ab7d44894dda87276eae6bb852bbbc692e1e)
2019-09-03 01:53:12 -04:00
Szymon Kłos
d5b906f3d5 Z-index doc, sidebar under menu
Change-Id: Ic9c0dbb326d45c205746e50018906030f7a6fd27
(cherry picked from commit 0d7b28daf8a8bf6f2adc33bbe3d7d5f7f72d6659)
2019-09-03 01:53:12 -04:00
Ashod Nakashian
9a8b12ce0e leaflet: hide sidebar's horizontal scrollbar
And merge a single z-index property into
the main css.

Change-Id: I0a8ed76c98b46052b2cf4b32cfcae498c1615584
(cherry picked from commit 7ba1f6a12c6c8797b3d832faf540d4914b6f219b)
2019-09-03 01:53:12 -04:00
Ashod Nakashian
c21797d9ac leaflet: hide sidebar on mobile screens
Change-Id: I9d43dab6e44eeda35bdd8f2fffe0702d5d0c11f1
(cherry picked from commit 41b80a56b79e9d8eb45a8fde07d15cefc3603377)
2019-09-03 01:53:12 -04:00
Szymon Kłos
467327253f Don't show empty sidebar on start for tablets
Change-Id: I0123b150bb095eb1a070468a4baa98595adf1af1
(cherry picked from commit 59ce01d511ebf7b59f2be714b193bc23794b130d)
2019-09-03 01:53:12 -04:00
Szymon Kłos
7dff884712 Top align sidebar in mobile
Change-Id: Ib2e1d70bf9a63f6136c6458bb83c6b8b030d177a
(cherry picked from commit 32d78d8ba2f6712a46584ddb1b22eaa5f8b8512a)
2019-09-03 01:53:12 -04:00
Ashod Nakashian
dc61397aea leaflet: scroll sidebars in client instead of resizing in core
And resize the sidebar div to slightly shorter height than
the content area to avoid scrolling the sidebar unnecessarily.

Change-Id: I5cedb54a573f90097bfefd9a0099375e13a76a3b
(cherry picked from commit 9bd92971dc34508091133024bcabd3043e0b6ab3)
2019-09-03 01:53:12 -04:00
Jan Holesovsky
4fdec000ff sidebar: Resize the underlying canvas on resize.
Otherwise it always stays 400x600 and things get cut off.

Change-Id: I999ef1f852f933ac447d500d922e6d38cb028459
(cherry picked from commit dee28b6b1eae2c5faf18c3e7cf7dd2264b05f833)
2019-09-03 01:53:12 -04:00
Jan Holesovsky
029e830466 sidebar: Lower the z-index, so that it is covered with the overlay.
Change-Id: I8f6910289ca512c253d34b251c7385f1dc55fead
(cherry picked from commit 20ca03ee754b78a4ced9c49073b73e3e76d9196d)
2019-09-03 01:53:12 -04:00
Jan Holesovsky
a02cd4a3d7 sibebar: Various smaller visual cleanups.
* Make it work with the menu fold / unfold button
* White background + a grey line separating the document area + the
  sidebar
* Use CSS instead of manually setting the properties in some cases

(cherry picked from commit d1ba38386c2c8367213afd47d66f992870fa7207)

Change-Id: I2ba7201075637ebdcc2b9f7319aa59317631aba2
2019-09-03 01:53:12 -04:00
Ashod Nakashian
45ebb033fb leaflet: use new menu selection color
Change-Id: I963141a0270d8a51cd1d00b846cdb4c9da09bd84
(cherry picked from commit 829784772762cb0e16c0bfe6a18d610a6e2f0893)
2019-09-03 01:53:12 -04:00
Ashod Nakashian
9206958c0f leaflet: support arbitrary sized sidebar
Change-Id: I0804ec0aec77fe88a12f9beec09881d92052a7e7
(cherry picked from commit 49c2ec25664c3fa7d2e4b051392abeb17406a902)
2019-09-03 01:51:12 -04:00
Ashod Nakashian
27d780747b loleaflet: add sidebar
(cherry picked from commit 01c828c911fa70b263fee699efbc656fde54d03f)

Change-Id: Idc215e67b21b1f0ba48b3d391041278dd6526cfe
2019-09-03 01:00:05 -04:00
Scott Clarke
1e82c46bd3 Add ability to resolve comments
Add 'Resolve' button to annotation context menu
Add 'Resolved' indicator to comments

Change-Id: Ie43e247635a14d3407535e02ec2012f0809d425c
Co-authored-by: Jim MacArthur <jim.macarthur@codethink.co.uk>
Reviewed-on: https://gerrit.libreoffice.org/76757
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2019-08-19 16:42:06 +02:00
Tomaž Vajngerl
7467710dab table handles: drag only in x/y axis, marker on hover, cursor
This adds:
- support to freeze movement to x or y axis when dragging the
marker (depends on the marker type - column or row marker)

- change marker on hover, which uses a different image, which is
solved in css

- change cursor to col-resize / row-resize when howering over the
marker

Change-Id: I63bf5e82860ef75f2dfde31ee2ab7ede6f61ce70
Reviewed-on: https://gerrit.libreoffice.org/77652
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-08-19 01:03:20 +02:00
Tomaž Vajngerl
cc70602939 tdf#122529 Support for table overlay - column/row change markers
This adds table markers for resizing rows and columns if the user
has the table selected or the cursor is in the table. The code
reacts to the callback "tableselected:", where the markers are
created for each column and row, if the payload (json) of course
has any data. When the marker is dragged, a uno command to resize
the table column or row border is send to the core.

Change-Id: I9b21d09639c1b2be70a1a897f9e3340b453d847e
Reviewed-on: https://gerrit.libreoffice.org/77360
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-08-15 05:16:04 +02:00
Samuel Mehrbrodt
119eb7b86f Remove space below ruler
This breaks cursor positioning with the mouse.

Was introduced with 0576a3cced

Change-Id: I85abca224d2bc9d365443bd87c6793db1900e2a4
Reviewed-on: https://gerrit.libreoffice.org/76578
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-07-30 09:27:45 +02:00
Samuel Mehrbrodt
0576a3cced Add "Show ruler" menu entry
Also add some space between the ruler and the document frame

Change-Id: I75a3e4668d03cf44b235082cd7d8c24672209262
Reviewed-on: https://gerrit.libreoffice.org/72339
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-06-04 09:08:30 +02:00
Tor Lillqvist
291d9dd101 tdf#122572: Avoid thin rectangular border around context toolbar on iOS
Change-Id: Ifaf710b03eb860455ffb99473d82898c1de8190c
2019-06-03 14:10:45 +03:00
Tor Lillqvist
fd3fa85426 tdf#122572: Don't underline the entries in the iOS selection context menu
The entries in the native edit menus appeared underlined for me
because I had turned on “Button Shapes” in Settings > General >
Accessibility. They are not supposed to be underlined normally.

Change-Id: I9b85774f3c8300e014092f6ea08953a404156899
2019-06-03 14:10:40 +03:00
Tor Lillqvist
532e70db8d tdf#122572: Use a context toolbar in the iOS app that looks more native
Not icons, but white text on black background, etc. This is how the
native context toolbar (whatever it actually is called in iOS) looks
in Notes and Pages and in text input fields in general.

Change-Id: Ibfa149fa8a951046de25c71022ea5c5684cfcc02
2019-05-31 19:51:34 +03:00
Alexandru Vlăduţu
60dca5cf5e loleaflet: minor followup changes after vex upgrade
Change-Id: I9cee6ee5b0592f067718399a4ccaf1c25203c01c
Reviewed-on: https://gerrit.libreoffice.org/71851
Reviewed-by: Iván Sánchez Ortega <ivan.sanchez@collabora.com>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-16 16:12:27 +02:00
Alexandru Vlăduţu
ef1669b389 loleaflet: update vex.js library
Change-Id: I6b32c6a60a27aa27eb32784bb73e40c979f67def
Reviewed-on: https://gerrit.libreoffice.org/71726
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-05-03 12:17:02 +02:00
Szymon Kłos
9e70d70588 Don't hide last modification if height is small
Change-Id: Ic8986e8a9c36bd1c4ede9e604b07d93974c1a05f
2019-03-20 08:57:57 +01:00
Szymon Kłos
a533fad1f2 Don't wrap menubar
Change-Id: I5283a20d50dceb945378b47fc5678798dfa52608
Reviewed-on: https://gerrit.libreoffice.org/69159
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2019-03-13 16:41:30 +01:00
Szymon Kłos
1236c63f6b Show user colors when no avatar is available 2019-03-12 09:21:03 +01:00
Szymon Kłos
c7095ff3e1 Make avatar unified and colored
Change-Id: I2991f8d6a5e0660c2ea857e397588f162f557c60
2019-01-30 16:55:02 +01:00
Szymon Kłos
fb924bf931 Unify whitespaces in loleaflet.css
Change-Id: I6d916acac8f6b7d4c71eab4fd63b5e13d61be4a1
2019-01-29 21:15:01 +01:00
Szymon Kłos
df090a42b4 Reduce readonly toolbar height
Change-Id: I431a2f3e87374a1cb6cb75557cb0d1eecccf17d0
2019-01-29 21:11:59 +01:00