mirror of https://github.com/OCA/web.git
Merge pull request #799 from Domatix/11.0-mig-web_searchbar_full_width
[11.0][MIG] web_searchbar_full_widthpull/899/head
commit
bbed7bd9a3
|
@ -0,0 +1,61 @@
|
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
||||
:target: https://www.gnu.org/licenses/agpl
|
||||
:alt: License: AGPL-3
|
||||
|
||||
==============================
|
||||
Show searchbar over full width
|
||||
==============================
|
||||
|
||||
Odoo's default search bar is rather narrow, which causes it to grow vertically
|
||||
when applying a lot of filters. For small screens this can be a problem as it
|
||||
wastes a lot of space. This addon addresses this issue by growing the search
|
||||
bar to the whole width of the screen, moving it below the breadcrumb. A side
|
||||
effect of this is that the breadcrumb can also use the full screen width, which
|
||||
makes it reasonable not to cut off titles after 7 characters.
|
||||
|
||||
The result looks like this:
|
||||
|
||||
.. image:: /web_searchbar_full_width/static/description/preview.png
|
||||
:alt: Searchbar over full screen width
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/162/11.0
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/web/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smashing it by providing a detailed and welcomed feedback.
|
||||
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Holger Brunn <hbrunn@therp.nl>
|
||||
* Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
.. image:: http://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: http://odoo-community.org
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit http://odoo-community.org.
|
|
@ -0,0 +1 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 2015 Therp BV <http://therp.nl>.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
{
|
||||
"name": "Full width searchbar",
|
||||
"version": "11.0.1.0.0",
|
||||
"author": "Therp BV, "
|
||||
"Odoo Community Association (OCA), "
|
||||
"Siddharth Bhalgami",
|
||||
"license": "AGPL-3",
|
||||
"category": "Tools",
|
||||
"summary": "Show search bar in full screen width",
|
||||
"depends": [
|
||||
'web',
|
||||
],
|
||||
"data": [
|
||||
'views/templates.xml',
|
||||
],
|
||||
'installable': True,
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
|
@ -0,0 +1,16 @@
|
|||
.o_control_panel .breadcrumb {
|
||||
width: 100%;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.o_control_panel .o_cp_searchview {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.o_control_panel .o_cp_left {
|
||||
width: 45%;
|
||||
}
|
||||
|
||||
.o_control_panel .o_cp_right {
|
||||
width: 55%;
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<template id="assets_backend" name="web_searchbar_full_width assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
Loading…
Reference in New Issue