Commit graph

779 commits

Author SHA1 Message Date
codewithvk
9179f0d2f3 Mobile: Insert comment layout is too narrow and doesn't occupy full height
Change-Id: Ibb6beff5659f5240ff2b49897e8a491f08933691
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
2024-01-03 15:01:05 +01:00
codewithvk
5fa0d9b69a Android: Insert Cells Menu Misaligned Radio Buttons
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: Ie6bdb2423f92b5959a2233ee0dccc6f8e2e5dc35
2023-12-28 15:23:25 +03:00
Darshan-upadhyay1110
434fffa5bb Fix text in font and style dropdown types dark in Dark mode
- in Compact/Classic mode typing text are dark in darkmode

To reproduce:

- change to dark mode and select Compact mode
- type in input field of Font or in Font size
- without this patch color will be dark in dark mode
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I4510001cfdf26acf8419eb0aa4ee3611b0a51b09
2023-12-22 16:12:28 +03:00
Darshan-upadhyay1110
5403d885a3 Fix view pushed up in Calc for autfilter popup
- fix view jump by display hidden for auto-filter popup
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I4e48fd2d7363db53d4bf3a1d85f9897de3b1e91a
2023-12-20 10:16:28 +01:00
Bayram Çiçek
a72a8536c6 Calc: improve drag&drop functionality of sheet tabs
- drop zone indicator added to the left of all tabs
- additional drop zone indicator added to the right
of the last tab
- added drop zone container at the end of tabs
for the last drop zone indicator

- div#drop-zone-end-container element also adds
a space to the end of the tabs so that the last
tab can be seen easily after scrolling to the end

Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: I25a87bc1798b94c5f294532d308cd46292ef1795
2023-12-18 21:11:06 +01:00
Pedro Pinto Silva
094b2ce884 Dark mode: Fix icon's opacity and color on shortcuts component
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I992936919e26c135a05c29d44c62dc07e1c49d04
2023-12-14 08:47:52 +01:00
Pranam Lashkari
93bdcc349b Annotation: revamp comment autosaving
Original approach before comment autosave:
When we save a new comment, original DOM element which user was editing
is removed from the DOM and new comment DOM element is created from the data and message sent by core.

Previous comment autosave approach:
When we save a new comment, original DOM element which user was editing
is not removed but kept in editing mode. We register the comment message sent by the core
but react and create new comment DOM element only after user clicks on save or cancel.
This lazy initialization caused many regression due to juggling of the new and old comment DOM element.
All these problems were in JS side only, reloading doc would bring comment in correct state.
This approach gave smoother transition between different comment states without any flickers.

New comment autosave approach:
Simple as the original approach, when comment loses focus we save it as normal comment.
When new DOM element created via core comment message, we immidietly set it to edit mode.
This approach may have a little flicker when we replace old comment DOM element with new comment DOM element.
Overall this approach requires less condition checking which makes it easy to maintain and hopefully reduces any regression from previous method.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I4098085825ede65cdbf2e2243fc4d2bb1f63c716
2023-12-07 15:38:13 +01:00
Pranam Lashkari
ca64805e23 Revert "annotation: autosave comments when lose focus without exiting editing"
This reverts commit a022212381.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6431fc2500fe44a8d97364aa89412206179c7aba
2023-12-07 15:38:13 +01:00
Szymon Kłos
bbcf9053b9 Show info modal on network access error
If administrator doesn't allow some URLs in the coolwsd.xml
under net.lok_allow then when pasting webpage with images
- it might result in missing pictures. We should show the
user what happened.

User can click "don't show this again" to avoid annoying
dialog on every paste.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iec9035860b1c6a332420defd539000e8854447c9
2023-12-07 14:58:42 +01:00
aarsh21
85e5ba4807 fix:navigator hyperlinks line-breaking on chrome and firefox
Signed-off-by: aarsh21 <aarshpersonal21@gmail.com>
Change-Id: Ic91e1cb017b82fd21ba942d54ddc277c9cc7d3cc
2023-11-24 10:21:09 +05:30
Darshan-upadhyay1110
dacc36928f Fix mobile-ui-tabs Misaligned Headings
- will fix Misaligned ui-tabs in mobile wizard
- also added scrollable property that will handle more fields in tabs if it does not fit into screen
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ib982a59c141d937c7f92eb9684b91fc7f2548df5
2023-11-17 13:12:08 +05:30
Darshan-upadhyay1110
2aa28a324c Fix Format > Columns Menu Has Dark Icons
- Added missing data-theme = dark for #valueset-img
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: Ibddeaa28089ba21250753f121af4746e3947cf38
2023-11-09 07:41:49 +01:00
Darshan-upadhyay1110
10d1c946af Fix Content control "down arrow" cannot be recognized in dark mode
- add missing image path for data-them dark
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: If6850770548d35eb95125ce0be1c52a557f5b344
2023-11-09 11:19:54 +05:30
Darshan-upadhyay1110
5c8e3e4d5c Fix select row icon
- SVG for lc_fromrow is not compatable and it was not loading properly in browser
- fixed svg syntex to properly load by browser
- removed unused css class from mobile wizard
- that fixes the icon remain light in mobile view as well
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: Ifa1e2e5397e48d33ede8a6081808cd0051d9059a
2023-11-08 15:58:18 +01:00
Szymon Kłos
56327b8f56 jsdialog: open submenu on hover in dropdowns
- showsubmenu event on hover
- hidedropdown event on leave
- submenu is inserted into the same overlay as parent dropdown
- don't destory overlay if submenu is closed, do that only for root
- works on tablet / touch device

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibb4a747555e172dd4e040950cdfd309560f214a7
2023-10-31 12:22:39 +01:00
Szymon Kłos
d87c718a84 css: pivot table dialog separator fix
vertical separator was overlapping other widgets

can be found in: Calc -> Insert -> Pivot Table -> next

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I818fc4a8bb9b44b48fe43c911182c37e3cbc0d8c
2023-10-31 12:22:29 +01:00
Pedro Pinto Silva
d6375f838b Menus (dropdowns) with separator: Fix hidden keyboard focus
When opening a menu as in Calc > Home > Conditional menu and then
press tab: we can successfully cycle through the elements but for some
elements user cannot see the focus.
 - The focus was being set but under the separator. So, better to
 assure that the immediate separator neighbor is set to transparent.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icb87b3173144356efad101f5e2b9b77e0e8dcd06
2023-10-29 21:02:28 +01:00
Pedro Pinto Silva
2b5eb98296 Multi-level menus (dropdowns): Fix chevron elements
Chevron (Arrow)

- Use existing icon and re-use it instead of a text character
  - sing text depending on font size and the width we were giving
  - could be dangerous
- Fix alignment: before this commit the chevron was almost glued to
the edge
- Make the hover state less dark so the chevron is visible at all times

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3b79c6b9df324727fd0c217f869d9bb8a4df2d72
2023-10-29 21:02:28 +01:00
Pedro Pinto Silva
9e286c817d JSdialog: Fix ui-separator visual importance
Before this commit separators were being rendered in quite dark color
and thickens make them standout more than the actual interactive
controls surrounding them

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I96c3eaf476cd947f804d855e0fd242a5ab42ee9b
2023-10-29 21:02:28 +01:00
Pedro Pinto Silva
dd4cb30d39 Mobile: Mobile-wizard: fix paragraph panel layout
We now have a new nice separator widget in online so we can render
separators that are coming from core. However in some cases, such as
mobile, we don't want to clutter the mobile wizard. On top of that we
already have separators.

Also: add comment to the jssidebar.css so it can be found when using
grep, blame etc

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I02a5831eff566367664ed022687ffeea6d7d3a81
2023-10-26 21:27:40 +02:00
Szymon Kłos
e8f31ca649 sidebar: fix paragraph panel layout
This fixes regression from commit c77f1041a5
jsdialog: implement horizontal separator

Where horizontal separator widget was implemented
and now it appears in the sidebar, but as we have grid
layout there - it occupies only half of the sidebar
because we have 2 columns.

Previously there was no separator - hide it.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie65626011f98ded52e57306fc41d94fc58829d8f
2023-10-26 21:27:40 +02:00
Szymon Kłos
393867f25e notebookbar: a11y: cond format submenu focus & navigation
- focus when opened
- add focus cycle
- convert to grid view

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I86592abb23c1dbe2e7e36d09b46fe0c23957539f
2023-10-26 09:19:24 +02:00
Szymon Kłos
4e0a2a86b0 notebookbar: add more cond format styles
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I57a3e0aaf35a91b1d307b43c90758dd483e6996e
2023-10-26 09:19:24 +02:00
Szymon Kłos
5c449425aa notebookbar: add data bar cond format submenu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8151a9bf3d5befc0c36a4849f149c348b3ee7e80
2023-10-26 09:19:24 +02:00
Szymon Kłos
82abf2f3b1 notebookbar: add color scale cond format submenu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I90f403abaf381d9b4afe93d62bebb3e5b888c381
2023-10-26 09:19:24 +02:00
Szymon Kłos
4950f3e8a2 jsdialog: multi-level dropdowns
It is possible to make submenus:
{text: _('Condition...'), items: [
   .... sub-menu entries ....
]}

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0a6687c0a6bc19b4cd6616005571b75ad41eb444
2023-10-26 09:19:24 +02:00
Szymon Kłos
c77f1041a5 jsdialog: implement horizontal separator
it is used in dropdowns eg. conditional formatting in Calc

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I19554c74de2fa861686469acbf2c3025633d0687
2023-10-26 09:19:24 +02:00
Szymon Kłos
937264e5cf jsdialog: treeviews should have full width
but entries have to be max-content to not wrap,
only main container has no width set to be automatically
resized to the needs

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0dc2487b56700b1cc87f5f7ce1fcda8e91855269
2023-10-26 09:19:24 +02:00
Andras Timar
02ca6afb5e dark mode improvement of UI images
- Calc - Autofilter - Two image buttons
- Writer - Insert tab - Page Number page preview
- Writer - References tab - Table of Contents and Index - Columns preview

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I035ac128123fee81d6ea18b0882a7170f19b199f
2023-10-23 13:14:00 +02:00
Szymon Kłos
2e10823246 jsdialog: don't add margin to flat list entries
in case of list view without levels we don't need
margin in first cell

detect that based on presence of aria-level property

use width: max-content to be sure we don't wrap entries
if not needed

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ica98e90dffd1e2b7330eb962cfc8141fa6fe01a1
2023-10-23 13:10:14 +02:00
Szymon Kłos
f0e1eea2db jsdialog: build treegrid without additional cells in table
Use pure CSS to make margins for different levels.
Inspired by: https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/examples/treegrid-1/#ex_label

- reuse arrow from tree view and expander widget
- center verticaly entries in the tree grid / list view
- add pointer cursor for expander arrow
- do not allow to sort tree grid - it makes no sense

Tree grid is a kind of table with headers but rows can be expanded
and have subentries with different "level" in the tree

It can be tested in Writer -> Review -> Manage Changes

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4d0719a35cf852127378525153eb5b1e5d9961a7
2023-10-23 13:10:14 +02:00
Szymon Kłos
ac47dd8c5f jsdialog: better layout in Manage changes dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia709cfe49717568f4ab81a33e3aa65f587dc9379
2023-10-23 13:10:14 +02:00
Pedro Pinto Silva
2c800928a6 JSDialog: Set max height for Calc: Data: Sort dialog
To avoid 2 scrollbars in this dialog better to set a max-height to
this element so it never surpasses the main dialog height

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I939fd5fa3cafb3fcc0721aa2864b262535f622a7
2023-10-20 20:42:05 +02:00
Pedro Pinto Silva
2a432c9de7 JSDialog: Calc: Sort dialog: fix width without breaking spelling dialog
This fixes regression introduce in: Fix Spell checker js Dialog
- fd630d427f

By reading the code, it seems there was a fix for the spelling
suggestion (that comes as an image from core). It fixed the width,
before that the image was being resized to fit the parent's width.
- This fix still works but it ended up affecting any other
.ui-scrollwindow (that is not .formulabar)
	- which means that (for **any** text content) the content will not
	wrap at all even if it causes overflows and it will occupy
	only as much space as it needs and not the full parent's
	width.
	- Affected dialogs: Sort dialog's ui-scrollwindow was occupying
	only enough space to display its contents, leaving a big white
	space on the side

The present commit applies the max-content (that should never be
applied to text) solely when we have drawing-area child

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iaf461663508a70a6a599cbe3e9411026b54531f0
2023-10-20 20:42:05 +02:00
Szymon Kłos
8332790984 jsdialog: fix scrollbars inside dialogs
This fixes side effect from commit a1b2091ae6
JSDialog: Dialogs shouldn't be taller than viewport

As mentioned in the above commit, we seemed to have children that are
always bigger than the parent even if there is no elements to be
displayed and to fix that we enforce in multiple places the overflow
hidden: afbf052bb5
	- Ideally we wouldn't do this and just let the web browser
	figure out if a scroll bar is needed or not. However this
	would be a quite risky thing to do without enough testing...so

Best to ensure that other dialogs that have hidden items in the
DOM don't get scrollbars. Examples:
	- Writer -> Format -> Character
	- Calc -> Data -> Validity

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia2625bd7e45214aa43ae96e95a149e0f78c9cd7c
2023-10-20 20:42:05 +02:00
Andras Timar
2ed09707e7 Help window was too narrow
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I245e0979cd069f13eb8237eb155aa1760289a180
2023-10-20 17:36:56 +02:00
Andras Timar
af8ba81943 Fix CSS selector: make checkboxes visible in light mode
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6e8194ea456e4af3104754cf9219be22f135c042
2023-10-16 16:56:03 +02:00
Pedro Pinto Silva
a1b2091ae6 JSDialog: Dialogs shouldn't be taller than viewport
Don't allow dialogs to grow taller than the web browser's viewport
instead,
 - Set (for dialog's content) a max of 90% of the View height and subtract the dialog's
header. This way the header with the close button stays always visible
 - Set overflow accordingly so it can be  scrollable
   - Needs to have !important because it seems we need by default
   "overflow: hidden;" set to every  ".jsdialog-container
   .lokdialog.ui-dialog-content.ui-widget-content"
      - introduced in afbf052bb5
      possibly due to hidden elements that are part of DOM

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I61a2a41d8b1198fe00b939427cde43d247dc08bb
2023-10-13 13:52:11 +02:00
Pedro Pinto Silva
9a6b877190 Snackbar hasProgress: Set to double column grid
Use new id for snackbar with progress and style it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I24a1647f0f629b7b079aa65601f4309c339a06e8
2023-10-11 08:29:43 +02:00
Pedro Pinto Silva
37bc01a730 Snackbar: fix pushbutton padding
Before this, the padding-right was being set to 0 (probably to save up
space) but this is not the way to do it. It looks weird when the focus
is set to that button.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib60b32cd9d0f5f42444cadef121be32c15941483
2023-10-11 08:29:43 +02:00
Szymon Kłos
c247b20509 snackbar: make progress visible
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3f1022c4680d749f80116b7480e58e14e2bce5b1
2023-10-11 08:29:43 +02:00
Szymon Kłos
27c72ca4d0 clipboard: set equal width for progress dialogs
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib0dde8d856c0358d9c5ec7ecb128b458221bb70f
2023-10-11 08:29:43 +02:00
Szymon Kłos
9d65a03e5b clipboard: complete dialog shows 100% progressbar
Reusing progressbar dialog allows us to show it's the
same process for the user. So even if it is instant he
will see 100% progressbar and that button become enabled.

Create new file for functions which manipulate existing
modal dialogs.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I765483b940f47bdfbcf8a488ea7d0ab9569ccda9
2023-10-11 08:29:43 +02:00
Szymon Kłos
b412adaeb9 snackbar: limit to 80% of screen or wrap
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie25794f55d9ccaf502d9189c096c8029a3698226
2023-10-11 08:29:43 +02:00
Szymon Kłos
585e00a1ee snackbar: vertical alignment of items
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia1fb616170497ad32e2db85111a7dc5b07e90f5d
2023-10-11 08:29:43 +02:00
Szymon Kłos
8c7b638bb8 jsdialog: move progressbar widget to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3a489340df101d7a672762a7a259cd92514f5f53
2023-10-11 08:29:43 +02:00
Pedro Pinto Silva
e2b64a71a7 CSS: Removed unused document-signing-bar
We no longer create that w2ui bar and we also have removed any element
with that id or parent from cool.html.m4 with that name. So, this can
be removed.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I26c9e66de44fe8a8f8ad785031c640d32960a350
2023-10-05 15:07:24 +02:00
Pedro Pinto Silva
99b423eac2 Tabbed: Calc: Scroll indicator is 3 pixels misaligned
The scroll indicator set with an absolute position ends up being
positioned in the 0 y coordinate. Since the wrapper has a top padding
of 3 pixel it means the scroll indicator is not 3 pixel off.

Also, and since these measurements are set in the CSS (the height of
the wrapper and the padding of the other wrapper), better to just move
everything to the CSS and avoid unnecessary inline styles.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icc1e51b2590ee27b318f9e4c3d550183b08cb49d
2023-10-05 11:36:14 +02:00
Szymon Kłos
18c02410e6 mobile: fix snackbar button position
This fixes regression from:
commit 07c3538589
mobile-wizard: create separate window container

The snackbar with action button like "leave feedback | ok"
or "we can reconnect | reload" had buttons below text
what looked bad and it was not possible to click

We introduced separate windows inside main
mobile-wizard-content container which have class
.mobile-wizard-content - let's use the same rules
as before for popups

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I506aaf34741fb1ff879c0c5c44a5958d6be9912c
2023-10-02 14:55:23 +02:00
Szymon Kłos
1f11d328a1 mobile: fix snackbar text
This fixes regression introduced in:
commit b6c26bee91
Mobile sidebar header layout #6861

- remove additional top border
- make line height regular so text will fit into snackbar
  without scrollbar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I72a1e7121d58a7583bd4efce9728c25231c7d8de
2023-10-02 14:55:23 +02:00