-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] web_tree_many2one_clickable: improved visualization
- Loading branch information
Showing
5 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,8 @@ Contributors | |
* Artem Kostyuk <[email protected]> | ||
* Anand Kansagra <[email protected]> | ||
* Alexandre Díaz <[email protected]> | ||
* Ooops404 <https://ooops404.com> | ||
* Sylwester Krasinski <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
* Artem Kostyuk <[email protected]> | ||
* Anand Kansagra <[email protected]> | ||
* Alexandre Díaz <[email protected]> | ||
* Ooops404 <https://ooops404.com> | ||
* Sylwester Krasinski <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,11 @@ | |
|
||
/* | ||
:Author: David Goodger ([email protected]) | ||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ | ||
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ | ||
:Copyright: This stylesheet has been placed in the public domain. | ||
Default cascading style sheet for the HTML output of Docutils. | ||
Despite the name, some widely supported CSS2 features are used. | ||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to | ||
customize this style sheet. | ||
|
@@ -275,7 +276,7 @@ | |
margin-left: 2em ; | ||
margin-right: 2em } | ||
|
||
pre.code .ln { color: grey; } /* line numbers */ | ||
pre.code .ln { color: gray; } /* line numbers */ | ||
pre.code, code { background-color: #eeeeee } | ||
pre.code .comment, code .comment { color: #5C6576 } | ||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } | ||
|
@@ -301,7 +302,7 @@ | |
span.pre { | ||
white-space: pre } | ||
|
||
span.problematic { | ||
span.problematic, pre.problematic { | ||
color: red } | ||
|
||
span.section-subtitle { | ||
|
@@ -424,12 +425,16 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2> | |
<li>Artem Kostyuk <<a class="reference external" href="mailto:a.kostyuk@mobilunity.com">a.kostyuk@mobilunity.com</a>></li> | ||
<li>Anand Kansagra <<a class="reference external" href="mailto:kansagraanand@hotmail.com">kansagraanand@hotmail.com</a>></li> | ||
<li>Alexandre Díaz <<a class="reference external" href="mailto:alexandre.diaz@tecnativa.com">alexandre.diaz@tecnativa.com</a>></li> | ||
<li>Ooops404 <<a class="reference external" href="https://ooops404.com">https://ooops404.com</a>> | ||
* Sylwester Krasinski <<a class="reference external" href="mailto:skrasinski62@gmail.com">skrasinski62@gmail.com</a>></li> | ||
</ul> | ||
</div> | ||
<div class="section" id="maintainers"> | ||
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2> | ||
<p>This module is maintained by the OCA.</p> | ||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> | ||
<a class="reference external image-reference" href="https://odoo-community.org"> | ||
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /> | ||
</a> | ||
<p>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.</p> | ||
|
35 changes: 31 additions & 4 deletions
35
web_tree_many2one_clickable/static/src/css/web_tree_many2one_clickable.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
td.o_many2one_cell { | ||
a { | ||
margin-left: 0.5em; | ||
visibility: hidden; | ||
} | ||
display: flex; | ||
align-items: center; | ||
position: relative; | ||
|
||
&:hover a { | ||
visibility: visible; | ||
} | ||
} | ||
|
||
/*SECONDARY CONTAINER FOR THE BUTTON AND TEXT*/ | ||
.o_many2one_container { | ||
display: flex; | ||
gap: 0.5em; /* Space between the containers */ | ||
} | ||
|
||
/*TEXT CONTAINER AND TEXT CSS*/ | ||
.o_text_container { | ||
max-width: fit-content; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
} | ||
div.o_custom_field_text { | ||
position: relative; | ||
max-width: fit-content; | ||
vertical-align: bottom; | ||
} | ||
/*BUTTON CONTAINER AND BUTTON CSS*/ | ||
.o_button_container { | ||
left: 0; | ||
} | ||
td.o_many2one_cell a { | ||
margin-left: 0.5; | ||
visibility: hidden; | ||
position: relative; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters