Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14043423
D12825.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D12825.diff
View Options
diff --git a/src/applications/auth/view/PhabricatorAuthAccountView.php b/src/applications/auth/view/PhabricatorAuthAccountView.php
--- a/src/applications/auth/view/PhabricatorAuthAccountView.php
+++ b/src/applications/auth/view/PhabricatorAuthAccountView.php
@@ -95,13 +95,22 @@
$image_uri = $image_file->getURIForTransform($xform);
list($x, $y) = $xform->getTransformedDimensions($image_file);
+ $profile_image = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'auth-account-view-profile-image',
+ 'style' => 'background-image: url('.$image_uri.');',
+ ));
+
return phutil_tag(
'div',
array(
'class' => 'auth-account-view',
- 'style' => 'background-image: url('.$image_uri.');',
),
- $content);
+ array(
+ $profile_image,
+ $content,
+ ));
}
}
diff --git a/webroot/rsrc/css/application/auth/auth.css b/webroot/rsrc/css/application/auth/auth.css
--- a/webroot/rsrc/css/application/auth/auth.css
+++ b/webroot/rsrc/css/application/auth/auth.css
@@ -26,12 +26,21 @@
.auth-account-view {
background-color: #fff;
border: 1px solid {$lightblueborder};
- background-repeat: no-repeat;
- background-position: 4px 4px;
- background-size: 50px 50px;
- padding: 4px 4px 4px 62px;
- min-height: 50px;
border-radius: 2px;
+ min-height: 50px;
+ position: relative;
+ padding: 4px 4px 4px 64px;
+}
+
+.auth-account-view-profile-image {
+ width: 50px;
+ height: 50px;
+ top: 4px;
+ left: 4px;
+
+ background-repeat: no-repeat;
+ background-size: 100%;
+ position: absolute;
}
.auth-account-view-name {
diff --git a/webroot/rsrc/css/application/conpherence/message-pane.css b/webroot/rsrc/css/application/conpherence/message-pane.css
--- a/webroot/rsrc/css/application/conpherence/message-pane.css
+++ b/webroot/rsrc/css/application/conpherence/message-pane.css
@@ -162,7 +162,7 @@
.conpherence-message-pane .conpherence-transaction-view {
padding: 2px 0px;
margin: 4px 12px;
- background-size: 35px;
+ background-size: 100%;
min-height: auto;
}
diff --git a/webroot/rsrc/css/application/conpherence/notification.css b/webroot/rsrc/css/application/conpherence/notification.css
--- a/webroot/rsrc/css/application/conpherence/notification.css
+++ b/webroot/rsrc/css/application/conpherence/notification.css
@@ -26,7 +26,7 @@
position: absolute;
width: 30px;
height: 30px;
- background-size: 30px;
+ background-size: 100%;
}
.phabricator-notification .conpherence-menu-item-view
diff --git a/webroot/rsrc/css/phui/phui-header-view.css b/webroot/rsrc/css/phui/phui-header-view.css
--- a/webroot/rsrc/css/phui/phui-header-view.css
+++ b/webroot/rsrc/css/phui/phui-header-view.css
@@ -90,7 +90,7 @@
.phui-header-image {
display: inline-block;
background-repeat: no-repeat;
- background-size: 50px;
+ background-size: 100%;
border: 2px solid white;
width: 50px;
height: 50px;
diff --git a/webroot/rsrc/css/phui/phui-object-item-list-view.css b/webroot/rsrc/css/phui/phui-object-item-list-view.css
--- a/webroot/rsrc/css/phui/phui-object-item-list-view.css
+++ b/webroot/rsrc/css/phui/phui-object-item-list-view.css
@@ -599,7 +599,7 @@
.phui-object-item-image {
width: 40px;
height: 40px;
- background-size: 40px;
+ background-size: 100%;
margin: 6px;
position: absolute;
background-color: {$lightbluebackground};
diff --git a/webroot/rsrc/css/phui/phui-timeline-view.css b/webroot/rsrc/css/phui/phui-timeline-view.css
--- a/webroot/rsrc/css/phui/phui-timeline-view.css
+++ b/webroot/rsrc/css/phui/phui-timeline-view.css
@@ -92,7 +92,7 @@
.phui-timeline-image {
background-repeat: no-repeat;
- background-size: 50px;
+ background-size: 100%;
position: absolute;
border-radius: 3px;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 13, 10:06 AM (6 d, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6722401
Default Alt Text
D12825.diff (3 KB)
Attached To
Mode
D12825: Make CSS agnostic to underlying profile image size
Attached
Detach File
Event Timeline
Log In to Comment