Commit graph

533 commits

Author SHA1 Message Date
Pedro Pinto Silva
72c9b2f60a Fix JSDialog input field on Mobile (chrome/mium), no scrolling
This  affects hyperlink text area

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0f98ce5cbd3ecf124141e680fe68d2d5b97d400e
2023-02-22 17:59:49 +01:00
Pedro Pinto Silva
7339a9d754 Fix JSDialog input field on Mobile (chrome/mium)
Otherwise they do not fully expand

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idaee2c10be2fd13e99b8d28336ec8738df431adb
2023-02-22 17:59:49 +01:00
Pedro Pinto Silva
14a4ed6852 Style hyperlink-text-box so it looks like an inputfield
Hyperlink's text field needs to be a  multiline but that doesn't
look right on 90% of the case. So better to style it as if it was
an input field but keep it as a text area so multiline text selection
doesn't get pasted back as one super long line

Ideally: if the user selects multiple lines and the Ctrl + k it should
concatenate it only for the purpose of presenting it in the dialog but
then the text in the document should retain the multilinear aspect and
be clickable . < - this is impossible to have currently without
over engineering so probably best simply style it differently

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I640f148ffd5bd76592fb30dde5545e2c26eda016
2023-02-22 17:59:49 +01:00
Pedro Pinto Silva
d3518f7fe0 Improve connectors popup dropdown #5418
Fixes #5418

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I12efe479c77ebd4c91ebe50687799da9e695e262
2023-02-17 10:34:10 +01:00
Pedro Pinto Silva
610a62be6d Sidebar: Fix to allow ratio to span across columns
There is an element displayed as a column before ratio
and we then hide it which is fine but, when ratio label
becomes to lengthly (Seitenverhältnis beibehalten) it then
gets cropped due to lack of space.
- Make it span across columns
- Do not align to the end
- Remove left margin from checkbox

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I02ec7a608c0b330a52fa70db3b453fe04fefa805
2023-01-27 12:53:26 +01:00
Pedro Pinto Silva
f051b62e35 Fix checkbutton label vertical alignment and spacing
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib32dfe4f7f2b0f8bb0b22434696143924f4fef17
2023-01-25 12:50:31 +01:00
Pedro Pinto Silva
b33a0c017e Sidebar fix cropped checkbutton label
In some languages (de) some labels were being shifted and ultimately
cropped due to their length. Example: Using German; selecting an image
-> the 'Seitenverhältnis beibehalten' was being cropped

Remove padding for those labels when on the sidebar

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4097268682a1890543c9d2a8107e621ea15335c9
2023-01-25 12:50:31 +01:00
Pedro Pinto Silva
5068a79213 Fix w2ui menus appearing with unnecessary scrollbars
Before this commit, on chrome/mium, menus such as
image or save as in the tabbed view (and with the browser zoom
set to bellow 80%) were being displayed with scrollbars.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id32e86229fe5d7aad293d24a20c9bfa555fbe78b
2023-01-24 11:52:29 +01:00
Pedro Pinto Silva
9d70a84e35 Fix disabled buttons inconsistencies
Primary buttons, secondary buttons and others are getting styled
differently for the same 'disabled' status. Plus, they are react
on hover which can lead the user to wrongly think they are active.
 - Fix inconsistencies and make it clear that they are all disabled

Example dialog: Find and replace

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I45be52ecda264d0af9a53a70c222d1047a3cdf73
2023-01-20 10:22:10 +01:00
Pedro Pinto Silva
5372e465af Increase color contrast on calc's dropdown marker
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I956f199bd69c32639d1b75993769c18fd85be693
2023-01-20 09:05:52 +01:00
Pedro Pinto Silva
cb4e512940 Fix dropdown's arrow position
Before this commit, the text in a dropdown could be overlapped by the
triangle (arrow). Example: Insert > Page number dialog

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I770acb10b89239bce280cf44ad56b9ec2c3a8264
2023-01-19 14:45:24 +01:00
Gülşah Köse
fb6c4c96c0 Show pdf settings dailog on mobile view.
Merge downloadas-pdf and exportpdf actions to have same functionality
on desktop and mobile view. Now we can see setup dialog on mobile view.

On mobide view Download as -> PDF should show PDF download
settings dialog before downloading the document same like
desktop view.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ib0dd3877973dae025e7a6d4f15f2fa26351ea369
2023-01-19 09:54:51 +01:00
Gülşah Köse
ce5d6360e0 Show epub settings dailog on mobile view.
Merge downloadas-epub and exportepub actions to have same functionality
on desktop and mobile view. Now we can see setup dialog on mobile view.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Iebe05e65f331de6737be88288fac34244cfcde18
2023-01-19 09:54:51 +01:00
Pedro Pinto Silva
1727383e7c Fix invisible text on primary button (hover)
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic07482aebe79e1dbd796acafbbd132a1449fe121
2023-01-16 12:08:13 +01:00
Pedro Pinto Silva
46f392bd0d Add min and max width to jsdialog modalPopup
with the introduction of showModal:
https://github.com/CollaboraOnline/online/pull/5518 we now have
a type of a dialog that, without this commit, can grow without
limits and can be as small as its content which is not ideal.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8768925377606924fd70fab8be40b0b755d802ac
2023-01-15 11:08:13 +01:00
Pedro Pinto Silva
73f2dfc591 Zotero: CSS: Ensure spacing between labels and other elements
While avoiding to add extra space to first elements

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia4102a783525e801e3adcd7dd8b621bb10ff2eb3
2023-01-14 09:41:47 +01:00
Pedro Pinto Silva
8336217607 Zotero: CSS refactoring: do not use id to target labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I312143e0c1764c7ecd761b95605b6f1e611e39c6
2023-01-14 09:41:47 +01:00
Gülşah Köse
966e62adc7 Use thin instead of auto for scrollbar width
On Windows firefox auto setting is not handled properly. Scrollbar
flows on the sidebar elements. We use thin instead.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ife27f461639e6b034ac9071624d628cd35709191
2023-01-11 10:42:31 +01:00
Pedro Pinto Silva
b308ba68e9 JSDialog: Add padding in between columns and fix th alignment
Before this table columns were getting "glued" (content of one
col would end and immediately would start content of another col).
Plus, we were having table content normally aligned to th start
while headers were being centered aligned

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie0908c26d1e7bedc37b3c5d768d941b091946524
2023-01-09 14:30:39 +01:00
Pedro Pinto Silva
c9a170463d JSSidebar: remove non-effective rules for expanders
These have no effect on the ui-expander-content since they
are set to display: block somewhere else (jsdialogs.css)
plus, (and even testing with flex) this does not seem to improve
or fix anything

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0260f44413ff46f79b9ea6a15e154ee62fb1e53f
2023-01-09 12:43:53 +01:00
Pedro Pinto Silva
ac2db46325 JSSidebar: Align vertically every widget
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If18a47848790bdf1898aab712c8900f46cd6cdbe
2023-01-09 12:40:37 +01:00
Pedro Pinto Silva
58a29afffa Revert "toolbox widgets get vertical center aligned"
This commit was initially intended to affect sidebar but it is
affecting every toolbox (dialogs, formula bar) causing regression
in the formula bar buttons

This reverts commit c0302a8d93c183b90079e3c2cbe9c90220e93cdb.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie872d26ec7dcfb396c7ccba13dcbf6142655be7a
2023-01-09 12:40:37 +01:00
Pedro Pinto Silva
c6e28eee58 Add float logical values fallback for buttonboxes
Before this commit, browsers such as chrome (without enabling
experimental features) were not supporting those float values

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2530e7bf46d161ac980559c181a4e03947edbeee
2023-01-09 10:26:27 +01:00
Pedro Pinto Silva
6ad1b900e0 Remove zotero search label and use placeholder instead
Remove citation search label and instead use placeholder

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0eef0cd9321babd7239b18b4fd5a422cc4d09831
2023-01-05 19:21:29 +01:00
Pedro Pinto Silva
1cc519ccf3 Citations: Fix extra h margins affecting search and locale controls
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5e1bf9cedbce7de1a5ca18c014b30914f9f6f046
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
3f27c6b1bc JSDialog: edit controls (input fields): do not force their width
setting it at 100% was leading to element getting passed their
container. Example of the referred bug:

https://archive.org/download/jsdialog-ui-edit-has-forced-width/jsdialog-ui-edit-has-forced-width.png

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I64a65e3149356f0094d0ce8e2ace8ffd8fba28fd
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
f1a86aedd5 JSdialog: Fix container's padding
Do not set sub container with a margin. This was resulting in
some elements (that are inside of that container) to be properly
contained but all the rest were being set without any surrounding
margins -> leading to misalignment

- Main jsdialog container shouldn't inherit lokdialog padding 0
- We do not need to specifically set `padding: .5em 1 em` because it
- has been already set and inherit from jquery ui CSS rules

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I957c93c099692a5bd202248731b16bc6bf358234
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
5f29c731fb JSDialog: add margin offsets to buttonbox L and R
Fixes the misalignment, before this commit: the safe margin
present in every button was correct but for the cases where
the button is placed to the further left or further right
edge of the dialog -> it looked misaligned

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibadeaf6cf736b07229d60f99b5af72865f26e23f
2023-01-03 17:04:32 +01:00
Pranam Lashkari
e045552ab0 zotero: added language selection support
some style may differ in languages
i.e: in APA style a citation may appears as (Abrikosov, n.d.) like "no date". When I switch language to Hungarian, it becomes (Abrikosov, é. n.) like "évszám nélkül".

language can be selected in document preference dialog

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ida1cd91b189fc468e0205e9f1e332238f3ebbe7b
2022-12-27 22:46:22 +01:00
Szymon Kłos
417be951e6 Zotero: handle subcollections in the tree structure
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I93f2a4f77969cf27415d882a8114a644dfced1fb
2022-12-20 15:59:52 +01:00
Szymon Kłos
3afd9156b6 jsdialog: support icon in the TreeView entry
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I33c76cef7164e2bb1abf6522f514d36924845272
2022-12-16 14:15:33 +01:00
Szymon Kłos
5e5873b8fc Zotero: setup minimal size for dialog
to avoid large position change when loaded

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67a5e1f4dec6db370dc01c1c469ce516601a70ac
2022-12-16 14:15:33 +01:00
Szymon Kłos
7c443599c8 jsdialog: set minimal width for spinfileds
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic78abc37b4ad0cf610b923dc1e28cb14f811b07b
2022-12-16 10:52:59 +01:00
Szymon Kłos
c19b3fe0b5 jsdialog: align vertically grid content
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ied87fb00a4859386a06719903e255489bc72beae
2022-12-16 10:52:59 +01:00
Szymon Kłos
abb3e91571 jsdialog: improve styling for input modal
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifa57a0ae876e79a665082ec23cf784603321798c
2022-12-16 09:09:07 +01:00
Szymon Kłos
6346bdc42e Zotero: add search field
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id0842b6c24953a447068ca4b6aea8f2d49d11d8d
2022-12-14 17:31:38 +01:00
Szymon Kłos
9296d06891 jsdialog: add sorting the column to TreeView
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I93ff95affe3eb27b988477491fbc9b8a855160af
2022-12-14 17:31:38 +01:00
Szymon Kłos
cbce2feb39 Make export EPUB/PDF always with options dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id8d6c6e6ddbeb510e476365728f4957d3938dfd6
2022-12-14 15:56:07 +01:00
Szymon Kłos
45184adba9 Zotero: show categories list
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6ecf4dd2dd26ce9f420ebe52edd06bf534575e7d
2022-12-13 09:05:48 +01:00
andreas kainz
6031436da1 remove fontheight rule from mobilewizard.css
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I21b8095843393d924a6790e18eaa3f868516f90d
2022-12-05 14:38:16 +01:00
Pranam Lashkari
2cfae369af initial zotero skeleton
add zotero UI only if user is logged in
when zotero citation edit button is clicked,
fetch the library with zotero API.
Let user select what to insert

at this stage its not a complete solution but just first stage

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id67d8409bcd6416994713acd9ace495b24823fb0
2022-11-30 20:37:48 +01:00
Pedro Pinto Silva
81f65509a2 JSSidebar: fix no vertical space by adding row gap
This also allow for one single shared place to have that
"margin"

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iac46810ac4ef219a4103bc315722dbd95e6fd169
2022-11-29 19:50:08 +01:00
Pedro Pinto Silva
f142a28468 Remove outdated vex hyperlink warn popup related css
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I04eb48bb14d31dcb53141d245bb61fd5420a61d2
2022-11-29 15:11:38 +01:00
Pedro Pinto Silva
d6ddae75b2 JSSsidebar: Fix ui-image alignment and size
We can set those so, the total size is 28px (same as the
grid cell) while keeping svg 16px size this in turn centers
the icon within its parent

Also we can then use the same 5px (that we use for normal button
margin) for the column-gap so everything aligns well

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib13a376fe71e308f9146c291acfbe3a941a4ef57
2022-11-29 12:56:39 +01:00
Pedro Pinto Silva
c86424dba0 JSSidebar: remove outdated vertical-align rule from buttons
We now use CSS grid and this rule is now not needed

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I65f5a1d05d0ac748c328c669e99be307c8721f3c
2022-11-29 12:56:39 +01:00
Szymon Kłos
dcdb577a6a sidebar: hide stack container when not needed
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iaa23b49ab7a90604c0eab7324411ecfd81656995
2022-11-29 10:29:13 +01:00
Szymon Kłos
99f1acaa70 CSS fixes after rebase
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I39c9595710f786bc6d6f5fbbb0dc3e6ff38af585
2022-11-29 10:29:13 +01:00
andreas kainz
2f66d70ebd simplify jssidebar.css file
complete new structure of the jssidebar.css file

file is structured into sections

1. general
   for general sidebar settings

2. expander section header
   ui-expander classes

3. section content
   biggest section
   define the sidebar gap elements
   first column justify-content: start
   last column justify-content: end

4. widgets
   general staff

4.1 widget width
    defined widths

4.2 widget selected
    style for
    - selected,
    - non-selected,
    - hover

5. fixes
   specific fixes

5.1 writer fixes

5.2 calc fixes

5.3 charts fixes

5.4 not available commands
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ia449544a671134abebdd4bebd347d20b119c964d
2022-11-29 10:29:13 +01:00
user
1fac2846b2 sidebar: dont break size and pos with rotationlabel
Signed-off-by: user <szymon.klos@collabora.com>
Change-Id: I3ad68c8442dd979dc685d6cbb5d1f061d24a0916
2022-11-29 10:29:13 +01:00
Szymon Kłos
8ac4c5b672 sidebar: don't add special alignment for spinfields
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I724097f9fb60d0620f9da5d78a49b619c8fc98a0
2022-11-29 10:29:13 +01:00