Skip to content

Commit

Permalink
[Redeisgn] Fixed display issues caused by long emails (#4372)
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-sharma committed Jul 12, 2017
1 parent 6904f98 commit 517c344
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/NuGetGallery/Constants.cs
Expand Up @@ -15,6 +15,8 @@ public static class Constants

public const int ColumnsAuthenticationSm = 6;
public const int ColumnsAuthenticationMd = 4;
public const int ColumnsWideAuthenticationSm = 8;
public const int ColumnsWideAuthenticationMd = 6;
public const int ColumnsFormMd = 10;

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery/Views/Shared/Gallery/Header.cshtml
Expand Up @@ -83,7 +83,7 @@
<div class="col-sm-9 dropdown-profile">
<span class="dropdown-username">@User.Identity.Name.Abbreviate(20)</span>
<br />
<span class="dropdown-email">@CurrentUser.EmailAddress.Abbreviate(35)</span>
<span class="dropdown-email">@CurrentUser.EmailAddress.Abbreviate(25)</span>
</div>
</li>
@if (Request.IsAuthenticated && User.IsInRole(Constants.AdminRoleName))
Expand Down
4 changes: 2 additions & 2 deletions src/NuGetGallery/Views/Users/Confirm.cshtml
Expand Up @@ -2,8 +2,8 @@
@{
var titleString = Model.ConfirmingNewAccount ? "Account" : "Email";
ViewBag.Title = "Confirm Your " + titleString;
ViewBag.SmPageColumns = Constants.ColumnsAuthenticationSm;
ViewBag.MdPageColumns = Constants.ColumnsAuthenticationMd;
ViewBag.SmPageColumns = Constants.ColumnsWideAuthenticationSm;
ViewBag.MdPageColumns = Constants.ColumnsWideAuthenticationMd;
Layout = "~/Views/Shared/Gallery/Layout.cshtml";
}

Expand Down
4 changes: 2 additions & 2 deletions src/NuGetGallery/Views/Users/Thanks.cshtml
@@ -1,7 +1,7 @@
@{
ViewBag.Title = "Thanks";
ViewBag.SmPageColumns = 8;
ViewBag.MdPageColumns = 6;
ViewBag.SmPageColumns = Constants.ColumnsWideAuthenticationSm;
ViewBag.MdPageColumns = Constants.ColumnsWideAuthenticationMd;
Layout = "~/Views/Shared/Gallery/Layout.cshtml";
}

Expand Down

0 comments on commit 517c344

Please sign in to comment.