Commit Graph

218 Commits (bdfd64b6f86dacedab222e1a019d35b21e09ed5e)

Author SHA1 Message Date
Andrii Skrypka bdfd64b6f8 [FIX] web_responsive: fix hotkey combinations in a shortcut template 2021-11-15 15:27:48 +03:00
OCA-git-bot caf0d507f8 [UPD] README.rst 2021-11-15 15:27:48 +03:00
Ivàn Todorovich 6078174a42 [IMP] Improve responsiveness in large screens: don't let the icons separate too much from each other
[FIX] Display of long search result items in mobile

[IMP] AppMenu searchbar style

[IMP] Add vertical padding to icons, to increase separation

[IMP] Add focus style on app icons

[IMP] Prevent user selection on menu

[IMP] Prevent dragging the menues
2021-11-15 15:27:48 +03:00
Pablo Androetto ad3b75b318 New style in apps menu
scss file to change ui variables easily

Deleted unnecesary padding

remove unnecesary styles

unnecesary styles

align menu items to left again

search results styles and fixes

prettier configuration fix

newline at end of file (variables.scss)

text color calculation for navbar

fix in img url

requested fixes

Transitions and focus fixes

fix in js settimeout

margin added in search-container

Fix in transition

Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com>

Remove duplicated css
2021-11-15 15:27:48 +03:00
Alexandre Díaz 98161e1134 [IMP] web_responsive: Restore discuss mobile mode 2021-11-15 15:27:48 +03:00
Stéphane Bidoul d0eb3eac73 pre-commit update: prettier xml indent 2021-11-15 15:27:48 +03:00
Alexandre Díaz 6ea5b3f5a5 [FIX] web_responsive: Change AppDrawer close method
Previous of this commit, AppDrawer closes when the action have an id
that is defined in a menu item and no rpc calls are running.
Now AppDrawer closes in a more generic way, is enough that a
controller is attached to consider that the AppDrawer needs to be
closed.
2021-11-15 15:27:48 +03:00
Jairo Llopis a5552e0ed6 [IMP] pre-commit run after update
Includes some manual fixes to silent ESLint warnings.
2021-11-15 15:27:48 +03:00
Alexandre Díaz 06e505bed0 [IMP] web-responsive: Document Viewer 2021-11-15 15:27:48 +03:00
Jairo Llopis ea3ba31b00 [FIX] web_responsive: make followers dropdown usable
Fix a visual glitch that impeded using the followers dropdown with a sided chatter.
2021-11-15 15:27:48 +03:00
Alexandre Díaz b0a1f0cf39 [IMP] mail_tracking: Changed form statusbar z-index 2021-11-15 15:27:48 +03:00
Alexandre Díaz 98ab5bc151 [IMP] web_responsive: Adapt test to 13.0 2021-11-15 15:27:48 +03:00
emagdalena 12d4b8454b [FIX] web_dialog_size js warnings 2021-11-15 15:27:48 +03:00
OCA-git-bot 0d4dc4a174 [UPD] README.rst 2021-11-15 15:27:48 +03:00
Pedro M. Baeza 643d7e2945 [IMP] web_responsive: Add development status + contributors 2021-11-15 15:27:48 +03:00
Alexandre Díaz d02a1cdd4e black, isort 2021-11-15 15:27:48 +03:00
Alexandre Díaz 567f43760f [IMP] web_responsive: Support long titles 2021-11-15 15:27:48 +03:00
Alexandre Díaz 9a5011221f [IMP] web_responsive: Made chatter input & attachments scrollable 2021-11-15 15:27:48 +03:00
Alexandre Díaz 466df9465a [MIG] web_responsive: Migration to 13.0 2021-11-15 15:27:48 +03:00
Alexandre Díaz aa3695bfcc [FIX] web_responsive: changed button box more initial position 2021-11-15 15:27:48 +03:00
Mathias Markl f1bdd5d61c Update web_responsive.scss 2021-11-15 15:27:48 +03:00
Alexandre Díaz 7d5b1227c1 [IMP] web_responsive: Performance when hide menus 2021-11-15 15:27:48 +03:00
Alexandre Díaz cdce180aa5 [IMP] web_responsive: Small refactor 'isWaiting' 2021-11-15 15:27:48 +03:00
Alexandre Díaz 14859ab4a9 [IMP] web_responsive: Don't show menu if waiting for an action to end 2021-11-15 15:27:48 +03:00
OCA-git-bot 04b298353a [UPD] README.rst 2021-11-15 15:27:48 +03:00
Mathias Markl 2ca39d3d41 [FIX] web_responsive: Close Menu on Discard 2021-11-15 15:27:48 +03:00
Mathias Markl 37a3b4d3e1 [FIX] web_responsive: adapt AppDrawer Discard 2021-11-15 15:27:48 +03:00
Mathias Markl 482c614b26 [FIX] web_responsive: AppDrawer Discard 2021-11-15 15:27:48 +03:00
Alexandre Díaz a4d55a8a0b [FIX] web_responsive: Close AppDrawer 2021-11-15 15:27:48 +03:00
Alexandre Díaz e8e2c88739 [IMP] web_responsive: Chatter on small screen 2021-11-15 15:27:47 +03:00
Alexandre Díaz f84b3468e4 imp overflow 2021-11-15 15:27:47 +03:00
Alexandre Díaz c46acf3d04 [FIX] web_responsive: Chatter position 2021-11-15 15:27:47 +03:00
Alexandre Díaz 592ed5c935 [IMP] web_responsive: Readme 2021-11-15 15:27:47 +03:00
Alexandre Díaz 90c5d9d1ef [IMP] web_responsive: Refactor code 2021-11-15 15:27:47 +03:00
Alexandre Díaz 461ba3156c [FIX] web_responsive: AppDrawer in Chromium 2021-11-15 15:27:47 +03:00
Alexandre Díaz 2190779e6e [IMP] web_responsive: Readme 2021-11-15 15:27:47 +03:00
Alexandre Díaz 6441fa447d [IMP] web_responsive: Menu wait for action 2021-11-15 15:27:47 +03:00
Alexandre Díaz 63c2496932 [IMP] web_responsive: Suggested changes 2021-11-15 15:27:47 +03:00
Alexandre Díaz ff39e5a1c5 [IMP] web_responsive: AppMenu wait for load view 2021-11-15 15:27:47 +03:00
Alexandre Díaz b0e260c413 [IMP] web_responsive: Support long title in form view 2021-11-15 15:27:47 +03:00
Alexandre Díaz 1ed738749d [IMP] web_responsive: Sticky in tree view and form view 2021-11-15 15:27:47 +03:00
Alexandre Díaz 81315a976d [IMP] web_responsive: chatter width 2021-11-15 15:27:47 +03:00
Jairo Llopis b40eac7350 [FIX] web_responsive: Allow searching apps in mobile Chrome
This patch fixes #1251.

The keydown event is faked in mobile chrome because it's not something reliable due to today's virtual keyboards prediction features. Typing a <kbd>C</kbd> character doesn't mean it will be there when user uses autocorrection/autoguessing.

Instead of that, we use now the `keydown` event exclusively for movement features, and `input` event exclusively for content changes in the search input element.

Apart from fixing search in mobile Chrome, it also makes code more readable.

The search input also disables autocompletion since it would be useless and annoying here.
2021-11-15 15:27:47 +03:00
Jairo Llopis 930588e4f8 Update web_responsive/static/src/css/web_responsive.scss
Co-Authored-By: Tardo <dev@redneboa.es>
2021-11-15 15:27:47 +03:00
Alexandre Díaz a17a6cd667 [FIX+IMP] web_responsive: Chatter Topbar + fix #1189 + added gif 2021-11-15 15:27:47 +03:00
Alexandre Díaz 13d07a2409 [IMP] Sticky chatter topbar 2021-11-15 15:27:47 +03:00
Jairo Llopis dfe798e7fb [FIX] web_responsive: Make app icons and search results middle-button-clickable
In the case of app icons, those weren't getting the `href` attribute filled.

In the case of search results, those weren't even an `<a>` element.

Fixed in both cases to fix https://github.com/OCA/web/issues/1170.
2021-11-15 15:27:47 +03:00
Jairo Llopis 134a8d20ca [FIX] web_responsive: Skip re-search when not writing
When the user uses TAB or SHIFT+TAB to navigate in search results, he can trigger a SHIFT-only keydown event without noticing, which would reset the selected result position to the first or last.

It is disturbing, so, to avoid that problem, the re-search is only triggered if the currently pressed key has length=1 or is Backspace, which will skip most keys that are not actually writing a character into the search input, like i.e. "Shift", "Alt", "F4", etc.

In addition to that, to detect if the search results is empty, the `:empty` selector is not trustable because it considers not empty nodes with whitespace-only content. That has been patched too.
2021-11-15 15:27:47 +03:00
Jairo Llopis 0709b3396c [MIG] web_responsive: Migrate to v12 and refactor
This migration includes a full refactoring to make this module more
maintainable. Some things that have changed:

- Removed external libraries.
- Change Less for Scss.
- Reduce ES and XML to the minimal required needs.
- Implement as much features as possible with just Scss.
- Remove copyright from `__init__.py` files.
- Trigger the new hotkeys system from Odoo v12 with `Shift+Alt` instead
  of just `Alt`, and restore some good old hotkeys (`E` for "Edit",
  `D` for "Discard", and `A` for "Apps menu").
  See https://github.com/odoo/odoo/issues/30068 on the matter.
- Control panel breadcrumbs are collapsed into a single backwards icon.
- Add FA icons to most common buttons in control panel.
- Hide text in XS for those buttons, to have a slicker phone experience.
- Lots of gifs in the README!
2021-11-15 15:27:47 +03:00
OCA Transbot 5122c2be11 Update translation files 2021-11-15 15:27:47 +03:00