From f99e6298173abb2dc9c3c4610db7f3ef99873e69 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 4 Dec 2011 19:15:02 -0800 Subject: [PATCH] Fixed the add button on AddSeries. --- NzbDrone.Web/Content/NzbDrone.css | 7 +++++- .../Views/AddSeries/ExistingSeries.cshtml | 22 +++++++++++-------- NzbDrone.Web/Views/AddSeries/RootDir.cshtml | 14 +++++++++++- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/NzbDrone.Web/Content/NzbDrone.css b/NzbDrone.Web/Content/NzbDrone.css index 00af39ce0..e1b6da29a 100644 --- a/NzbDrone.Web/Content/NzbDrone.css +++ b/NzbDrone.Web/Content/NzbDrone.css @@ -180,7 +180,6 @@ input[type=text], select height: 20px; } - select, button, input[type="button"], input[type="submit"], input[type="reset"] { height: 26px; @@ -188,6 +187,12 @@ select, button, input[type="button"], input[type="submit"], input[type="reset"] margin-left: 10px; } +/*This allows us to override center the text on the jQuery UI Buttons when we set the height above*/ +button span, input[type="button"] span, input[type="submit"] span, input[type="reset"] span +{ + margin-top: -3px; +} + .listButton { padding: 2px 10px 2px 10px; diff --git a/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml b/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml index 18ef1b718..e23039595 100644 --- a/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml +++ b/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml @@ -23,6 +23,11 @@ left: 202px; position: relative; } + + .seriesPathValue + { + display: block; + } @if (Model.ExistingSeries.Count == 0) @@ -42,20 +47,19 @@ else } + @foreach (var series in Model.ExistingSeries) { - -
- - @Html.Label(series.Item1) - -
+
+ + @Html.Label(series.Item1) +
@Html.Hidden("seriesId", series.Item3, new { @class = "seriesId" }) @Html.DropDownList(Guid.NewGuid().ToString(), Model.Quality, new { @class = "qualitySelector" }) - + +
- +
} diff --git a/NzbDrone.Web/Views/AddSeries/RootDir.cshtml b/NzbDrone.Web/Views/AddSeries/RootDir.cshtml index b2ebc8da6..18fad1f0e 100644 --- a/NzbDrone.Web/Views/AddSeries/RootDir.cshtml +++ b/NzbDrone.Web/Views/AddSeries/RootDir.cshtml @@ -1,4 +1,16 @@ - + + +