Some styling fixes for mobile view:

- fix broken Addressbook's avatar in view and edit mode
- fix buttons with icon not getting white filter
This commit is contained in:
Hadi Nategh 2023-02-28 13:06:52 +01:00
parent ba6bd55db3
commit f313f07cdb
5 changed files with 25 additions and 12 deletions

View File

@ -354,12 +354,11 @@
</et2-hbox>
</row>
<row class="dialogHeader">
<et2-hbox>
<et2-hbox disabled="@hidebuttons" class="avatar">
<et2-image src="photo" onclick="jQuery('table.uploadphoto').css('display','inline'); return false;"></et2-image>
<template id="addressbook.edit.upload"/>
<et2-box align="center">
<et2-hbox disabled="@hidebuttons">
<et2-avatar id="jpegphoto" contactId="$cont[id]" src="$cont[photo]" crop="false" editable="true" size="4em"></et2-avatar>
</et2-hbox>
</et2-hbox>
</et2-box>
</row>
<row>
<et2-textbox id="n_fn" tabindex="-1" class="cursorHand" onclick="jQuery('table.editname').css('display','inline'); var focElem = document.getElementById(form::name('n_prefix')); if (!(typeof(focElem) == 'undefined') &amp;&amp; typeof(focElem.focus)=='function') document.getElementById(form::name('n_prefix')).focus();" autocomplete="name" placeholder="Name" noLang="1" ></et2-textbox>

View File

@ -11,11 +11,11 @@
<row class="dialogHeadbar" >
</row>
<row>
<et2-hbox>
<et2-hbox disabled="@hidebuttons" class="avatar">
<et2-image src="photo" onclick="jQuery('table.uploadphoto').css('display','inline'); return false;"></et2-image>
<et2-box align="center">
<et2-hbox disabled="@hidebuttons">
<et2-avatar src="$cont[photo]" crop="false" shape="circle" size="4em"></et2-avatar>
</et2-hbox>
</et2-hbox>
</et2-box>
</row>
<row>
<et2-textbox id="n_fn" tabindex="-1" class="cursorHand" onclick="jQuery('table.editname').css('display','inline'); var focElem = document.getElementById(form::name('n_prefix')); if (!(typeof(focElem) == 'undefined') &amp;&amp; typeof(focElem.focus)=='function') document.getElementById(form::name('n_prefix')).focus();" autocomplete="name" placeholder="Name" noLang="1" ></et2-textbox>

View File

@ -70,7 +70,10 @@ export class Et2Avatar extends Et2Widget(SlotMixin(SlAvatar)) implements et2_IDe
*/
src: {type: String},
/**
* The shape of the avatar
* circle | square | rounded
*/
shape: {
type: String,
reflect: true

View File

@ -9028,7 +9028,15 @@ table.egwGridView_grid img.et2_appicon {
background-size: 24px 24px !important;
border: none;
}
body .dialogHeadbar et2-button[disabled] {
body .dialogHeadbar et2-button-icon::part(base) {
-webkit-filter: brightness(0) invert(1) !important;
filter: brightness(0) invert(1) !important;
background-color: transparent !important;
background-size: 24px 24px !important;
border: none;
}
body .dialogHeadbar et2-button[disabled],
body .dialogHeadbar et2-button-icon[disabled] {
display: none;
}
body .dialogHeadbar et2-button::part(base) {

View File

@ -1283,7 +1283,10 @@
.white-svg;
}
}
et2-button[disabled] {
et2-button-icon::part(base) {
.white-svg;
}
et2-button[disabled], et2-button-icon[disabled] {
display: none;
}
et2-button::part(base) {