mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Et2Link: Fix unwanted indent in front of et2-link-string, fix expose in et2-link-list
This commit is contained in:
parent
4d133c04b8
commit
27cd57d428
@ -181,6 +181,7 @@ export class Et2Link extends ExposeMixin<Et2Widget>(Et2Widget(LitElement)) imple
|
|||||||
._parent=${this}
|
._parent=${this}
|
||||||
href="${link.href}"
|
href="${link.href}"
|
||||||
src=${this.egw().image("" + link.icon)}
|
src=${this.egw().image("" + link.icon)}
|
||||||
|
?disabled=${!(link.href || link.icon)}
|
||||||
></et2-image-expose>`;
|
></et2-image-expose>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -507,7 +507,8 @@ export function ExposeMixin<B extends Constructor<LitElement>>(superclass : B)
|
|||||||
// Try for all exposable of the same type in the parent widget
|
// Try for all exposable of the same type in the parent widget
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
this.getParent().getDOMNode().querySelectorAll(this.localName).forEach((exposable, index) =>
|
const others = (this.getParent().closest("[exposable]") || this.getParent().getDOMNode()).querySelectorAll(this.localName);
|
||||||
|
others.forEach((exposable, index) =>
|
||||||
{
|
{
|
||||||
if(exposable === this)
|
if(exposable === this)
|
||||||
{
|
{
|
||||||
@ -518,6 +519,10 @@ export function ExposeMixin<B extends Constructor<LitElement>>(superclass : B)
|
|||||||
mediaContent.push(...exposable.getMedia(Object.assign({}, IMAGE_DEFAULT, exposable.exposeValue)));
|
mediaContent.push(...exposable.getMedia(Object.assign({}, IMAGE_DEFAULT, exposable.exposeValue)));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if(!others || others.length == 0)
|
||||||
|
{
|
||||||
|
mediaContent = this.getMedia(_value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
{
|
{
|
||||||
|
@ -1283,24 +1283,28 @@ div.et2_link_entry input.ui-autocomplete-input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul.et2_link_string {
|
ul.et2_link_string {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
display: inline;
|
display: inline;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.et2_link_string li {
|
.et2_link_string li {
|
||||||
display: inline;
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
et2-link-string et2-link::part(base) {
|
||||||
|
margin-right: -0.5ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.et2_link_string li:not(:last-child):after {
|
.et2_link_string li:not(:last-child):after {
|
||||||
content: '\002C\00A0';
|
content: '\002C\00A0';
|
||||||
}
|
}
|
||||||
|
|
||||||
.et2_link_list {
|
.et2_link_list {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-khtml-user-select: none;
|
-khtml-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
Loading…
Reference in New Issue
Block a user