diff --git a/src/dotnet/APIView/APIViewWeb/Client/css/pages/review.scss b/src/dotnet/APIView/APIViewWeb/Client/css/pages/review.scss index e710988fa3b0..af616f12ac68 100644 --- a/src/dotnet/APIView/APIViewWeb/Client/css/pages/review.scss +++ b/src/dotnet/APIView/APIViewWeb/Client/css/pages/review.scss @@ -73,4 +73,16 @@ &.gutter-horizontal { cursor: col-resize; } +} + +.option-approved > label, .option-pending > label { + font-size: small; +} + +.option-approved > label::after { + content: ""; + font-family: "FontAwesome"; + margin-left: 10px; + color: var(--success-color); + font-size: medium; } \ No newline at end of file diff --git a/src/dotnet/APIView/APIViewWeb/Client/css/shared/bootstraps-overrides.scss b/src/dotnet/APIView/APIViewWeb/Client/css/shared/bootstraps-overrides.scss index 242a35804545..edeed269413b 100644 --- a/src/dotnet/APIView/APIViewWeb/Client/css/shared/bootstraps-overrides.scss +++ b/src/dotnet/APIView/APIViewWeb/Client/css/shared/bootstraps-overrides.scss @@ -172,6 +172,15 @@ select { border: 1px solid var(--border-color); } +.dropdown-header { + color: var(--base-text-color); +} + +.dropdown-item:hover, .dropdown-item:focus { + color: var(--base-text-color); + background-color: var(--base-bg-color); +} + .table { color: var(--base-text-color); } diff --git a/src/dotnet/APIView/APIViewWeb/Client/css/shared/comments.scss b/src/dotnet/APIView/APIViewWeb/Client/css/shared/comments.scss index 2c81f7c6d6e0..16ab2cfcdc5b 100644 --- a/src/dotnet/APIView/APIViewWeb/Client/css/shared/comments.scss +++ b/src/dotnet/APIView/APIViewWeb/Client/css/shared/comments.scss @@ -36,7 +36,7 @@ .comment-contents { margin-bottom: 3px; overflow-wrap: anywhere; - overflow-x: auto; + display: inline-grid; } .comment-contents .fw-bold { diff --git a/src/dotnet/APIView/APIViewWeb/Models/ReviewRevisionModel.cs b/src/dotnet/APIView/APIViewWeb/Models/ReviewRevisionModel.cs index c1bad78b98ca..0a919bc7612a 100644 --- a/src/dotnet/APIView/APIViewWeb/Models/ReviewRevisionModel.cs +++ b/src/dotnet/APIView/APIViewWeb/Models/ReviewRevisionModel.cs @@ -45,18 +45,30 @@ public string Author } [JsonIgnore] - public string DisplayNameShort + public string DisplayName { get { + string name; + if (s_oldRevisionStyle.IsMatch(Name)) + { + // old model where revision number was stored directly on Name + name = Name.Substring(Name.IndexOf('-') + 1); + } + else + { + // New model where revision number is calculated on demand. This makes + // the feature to allow for editing revision names cleaner. + name = Name; + } return Label != null ? - $"rev {RevisionNumber} - {Label}" : - $"rev {RevisionNumber}"; + $"rev {RevisionNumber} - {Label} - {name}" : + $"rev {RevisionNumber} - {name}"; } } [JsonIgnore] - public string DisplayName + public string DisplayNameVertical { get { @@ -72,7 +84,9 @@ public string DisplayName // the feature to allow for editing revision names cleaner. name = Name; } - return $"{DisplayNameShort} - {name}"; + return Label != null ? + $"rev {RevisionNumber}\n\r{Label}\n\r{name}" : + $"rev {RevisionNumber}\n\r{name}"; } } diff --git a/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml b/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml index 79425fdd69cc..7df025417391 100644 --- a/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml +++ b/src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Review.cshtml @@ -18,7 +18,7 @@
-