Pārlūkot izejas kodu

Customers portal : Fixed a bug on profile picture edition. Button was not working on Firefox.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4254 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 9 gadi atpakaļ
vecāks
revīzija
229e725070

+ 2 - 2
datamodels/2.x/itop-portal-base/portal/src/views/bricks/user-profile/layout.html.twig

@@ -59,10 +59,10 @@
 									<img src="{{ sUserPhotoUrl }}"/>
 								</span>
 								<span class="actions">
-									<button type="button" class="btn btn-default btn_edit">
+									<span type="button" class="btn btn-default btn_edit">
 										<span class="fa fa-pencil fa-fw"></span>
 										<input id="picture" type="file" name="picture" />
-									</button>
+									</span>
 									{#<button type="button" class="btn btn-default btn_undo" title="{{ 'UI:Button:ResetImage'|dict_s }}" disabled>
 										<span class="fa fa-undo fa-fw"></span>
 									</button>

+ 4 - 0
datamodels/2.x/itop-portal-base/portal/web/css/portal.scss

@@ -515,6 +515,10 @@ footer{
 	max-height: 175px;
 	overflow: hidden;
 }
+#user-profile-wrapper .user_profile_picture .preview img{
+	max-width: 100%;
+	max-height: 100%;
+}
 #user-profile-wrapper .user_profile_picture .actions{
 	display: inline-block;
 	vertical-align: top; /*middle;*/