[frio] Fix layout of profile aside. (#5497) (#5498)

See issue (#5497)[https://github.com/friendica/friendica/issues/5497] for details.
This commit is contained in:
Andreas Neustifter 2018-07-25 22:12:30 +02:00 committed by Hypolite Petovan
parent 32a8702bd7
commit e8effeb3ae
3 changed files with 70 additions and 63 deletions

View file

@ -1115,11 +1115,11 @@ aside .vcard #profile-photo-wrapper.crop-preview {
padding: 0;
}
aside .vcard .profile-header {
margin-bottom: 20px;
padding: 5px 0px 5px 0px;
}
aside .vcard .fn {
font-size: 20px;
font-weight: bold;
padding: 5px 0px 5px 0px;
}
aside .vcard .p-addr {
font-style: italic;
@ -1139,9 +1139,10 @@ aside .xmpp {
aside .vcard .icon {
display: table-cell;
padding-right: 10px;
width: 30px;
}
#profile-extra-links {
margin-bottom: 20px;
overflow: auto;
}
aside .vcard #dfrn-request-link-button,
aside .vcard #wallmessage-link-botton {
@ -1514,6 +1515,9 @@ section #jotOpen {
overflow: visible;
word-wrap: break-word;
}
aside .panel-body {
padding: 0px;
}
/* Thread hover effects */
.wall-item-container .wall-item-content a,

View file

@ -1,12 +1,13 @@
<div class="vcard h-card widget">
<div id="profile-photo-wrapper">
{{if $profile.picdate}}
<div id="profile-photo-wrapper" class="thumbnail"><a href="{{$profile.url}}"><img class="photo u-photo" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}" /></a>
<a href="{{$profile.url}}"><img class="photo u-photo" src="{{$profile.photo}}?rev={{$profile.picdate}}" alt="{{$profile.name}}" /></a>
{{else}}
<div id="profile-photo-wrapper" class="thumbnail"><a href="{{$profile.url}}"><img class="photo u-photo" src="{{$profile.photo}}" alt="{{$profile.name}}" /></a>
<a href="{{$profile.url}}"><img class="photo u-photo" src="{{$profile.photo}}" alt="{{$profile.name}}" /></a>
{{/if}}
<div class="tool visible-lg visible-md">
<div class="tool visible-lg visible-md">
{{if $profile.edit}}
<div class="action">
<a class="" href="{{$profile.edit.0}}" title="{{$profile.edit.3}}"><i class="fa fa-pencil-square-o"></i></a>
@ -36,7 +37,7 @@
<div class="panel-body">
<div class="profile-header">
<div class="fn p-name">{{$profile.name}}</div>
<h3 class="fn p-name">{{$profile.name}}</h3>
{{if $profile.addr}}<div class="p-addr">{{$profile.addr}}</div>{{/if}}
@ -67,7 +68,6 @@
</button>
</div>
{{/if}}
</div>
<div class="clear"></div>
@ -125,7 +125,6 @@
{{include file="diaspora_vcard.tpl"}}
</div>
</div>
{{if $contact_block}}

View file

@ -1,10 +1,12 @@
<div class="vcard h-card widget">
<div class="vcard widget h-card">
<div id="profile-photo-wrapper">
{{if $url}}
<div id="profile-photo-wrapper" class="thumbnail"><a class="u-url" href="{{$url}}"><img class="vcard-photo photo u-photo" src="{{$photo}}" alt="{{$name}}" /></a></div>
<a href="{{$url}}"><img class="photo u-photo" src="{{$photo}}" alt="{{$name}}" /></a>
{{else}}
<div id="profile-photo-wrapper" class="thumbnail"><img class="vcard-photo photo u-photo" src="{{$photo}}" alt="{{$name}}" /></div>
<img class="photo u-photo" src="{{$photo}}" alt="{{$name}}" />
{{/if}}
</div>
{{* The short information which will appended to the second navbar by scrollspy *}}
<div id="vcard-short-info-wrapper" style="display: none;">
@ -21,12 +23,14 @@
</div>
<div class="panel-body">
<div class="fn p-name">{{$name}}</div>
<h3 class="fn p-name">{{$name}}</h3>
{{if $addr}}<div class="p-addr">{{$addr}}</div>{{/if}}
{{if $pdesc}}<div class="title">{{$pdesc}}</div>{{/if}}
{{if $account_type}}<div class="account-type">{{$account_type}}</div>{{/if}}
{{if $network_name}}<dl class="network"><dt class="network-label">{{$network}}</dt><dd class="x-network">{{$network_name}}</dd></dl>{{/if}}
<div id="profile-vcard-break"></div>
</div>
</div>