@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make CSS agnostic to underlying profile image size

Summary: Ref T7707. My analysis there was a bit confused and this isn't really all that important, but seems cleaner and desirable to be agnostic to the underlying image size.

Test Plan: Tested Safari, Firefox and Chrome with a variety of profile image sizes.

Reviewers: chad, btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T7707

Differential Revision: https://secure.phabricator.com/D12825

+30 -12
+11 -2
src/applications/auth/view/PhabricatorAuthAccountView.php
··· 95 95 $image_uri = $image_file->getURIForTransform($xform); 96 96 list($x, $y) = $xform->getTransformedDimensions($image_file); 97 97 98 + $profile_image = phutil_tag( 99 + 'div', 100 + array( 101 + 'class' => 'auth-account-view-profile-image', 102 + 'style' => 'background-image: url('.$image_uri.');', 103 + )); 104 + 98 105 return phutil_tag( 99 106 'div', 100 107 array( 101 108 'class' => 'auth-account-view', 102 - 'style' => 'background-image: url('.$image_uri.');', 103 109 ), 104 - $content); 110 + array( 111 + $profile_image, 112 + $content, 113 + )); 105 114 } 106 115 107 116 }
+14 -5
webroot/rsrc/css/application/auth/auth.css
··· 26 26 .auth-account-view { 27 27 background-color: #fff; 28 28 border: 1px solid {$lightblueborder}; 29 + border-radius: 2px; 30 + min-height: 50px; 31 + position: relative; 32 + padding: 4px 4px 4px 64px; 33 + } 34 + 35 + .auth-account-view-profile-image { 36 + width: 50px; 37 + height: 50px; 38 + top: 4px; 39 + left: 4px; 40 + 29 41 background-repeat: no-repeat; 30 - background-position: 4px 4px; 31 - background-size: 50px 50px; 32 - padding: 4px 4px 4px 62px; 33 - min-height: 50px; 34 - border-radius: 2px; 42 + background-size: 100%; 43 + position: absolute; 35 44 } 36 45 37 46 .auth-account-view-name {
+1 -1
webroot/rsrc/css/application/conpherence/message-pane.css
··· 162 162 .conpherence-message-pane .conpherence-transaction-view { 163 163 padding: 2px 0px; 164 164 margin: 4px 12px; 165 - background-size: 35px; 165 + background-size: 100%; 166 166 min-height: auto; 167 167 } 168 168
+1 -1
webroot/rsrc/css/application/conpherence/notification.css
··· 26 26 position: absolute; 27 27 width: 30px; 28 28 height: 30px; 29 - background-size: 30px; 29 + background-size: 100%; 30 30 } 31 31 32 32 .phabricator-notification .conpherence-menu-item-view
+1 -1
webroot/rsrc/css/phui/phui-header-view.css
··· 90 90 .phui-header-image { 91 91 display: inline-block; 92 92 background-repeat: no-repeat; 93 - background-size: 50px; 93 + background-size: 100%; 94 94 border: 2px solid white; 95 95 width: 50px; 96 96 height: 50px;
+1 -1
webroot/rsrc/css/phui/phui-object-item-list-view.css
··· 599 599 .phui-object-item-image { 600 600 width: 40px; 601 601 height: 40px; 602 - background-size: 40px; 602 + background-size: 100%; 603 603 margin: 6px; 604 604 position: absolute; 605 605 background-color: {$lightbluebackground};
+1 -1
webroot/rsrc/css/phui/phui-timeline-view.css
··· 92 92 93 93 .phui-timeline-image { 94 94 background-repeat: no-repeat; 95 - background-size: 50px; 95 + background-size: 100%; 96 96 position: absolute; 97 97 border-radius: 3px; 98 98 }