From 40656539b66122b029f2d3475d8c3d0314ef50fe Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 26 Mar 2018 20:17:29 -0500 Subject: [PATCH] align details buttons to right, add tooltip to Details buttons --- .../ClientApp/components/Home.tsx | 12 ++++++--- .../ClientApp/components/ListDetails.tsx | 25 +++++++++---------- src/FilterLists.Web/ClientApp/css/site.css | 3 ++- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index ee0b10864..5c2fb8c9b 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -74,11 +74,17 @@ export class Home extends React.Component, IFilterListsS accessor: "id", sortable: false, expander: true, - Expander: ({ isExpanded, ...rest }) => + Expander: ({ isExpanded, row }) =>
{isExpanded - ? - : } + ? + : }
, style: { textAlign: "center" }, width: 100 diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 23096d693..ae8319c73 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -38,14 +38,13 @@ function FilterListDetails(props: any) {
- +
-
+
@@ -114,14 +113,14 @@ function License(props: any) { function SubscribeUrl(props: any) { return Subscribe ; } function ViewUrl(props: any) { - return View ; @@ -129,7 +128,7 @@ function ViewUrl(props: any) { function HomeUrl(props: any) { return props.url - ? Home @@ -138,7 +137,7 @@ function HomeUrl(props: any) { function PolicyUrl(props: any) { return props.url - ? Policy @@ -147,7 +146,7 @@ function PolicyUrl(props: any) { function DonateUrl(props: any) { return props.url - ? Donate @@ -156,7 +155,7 @@ function DonateUrl(props: any) { function IssuesUrl(props: any) { return props.url - ? GH Issues @@ -165,7 +164,7 @@ function IssuesUrl(props: any) { function ForumUrl(props: any) { return props.url - ? Forum @@ -174,7 +173,7 @@ function ForumUrl(props: any) { function ChatUrl(props: any) { return props.url - ? Chat @@ -183,7 +182,7 @@ function ChatUrl(props: any) { function SubmissionUrl(props: any) { return props.url - ? Add Rule @@ -192,7 +191,7 @@ function SubmissionUrl(props: any) { function EmailAddress(props: any) { return props.email - ? Email diff --git a/src/FilterLists.Web/ClientApp/css/site.css b/src/FilterLists.Web/ClientApp/css/site.css index 9a21ebbdf..659412d69 100644 --- a/src/FilterLists.Web/ClientApp/css/site.css +++ b/src/FilterLists.Web/ClientApp/css/site.css @@ -9,6 +9,7 @@ body, h2, h3, h4, h5, blockquote { align-items: center; } -.fl-btn-margin { +.fl-btn-details-action { margin-bottom: .2rem; + max-width: 100px; } \ No newline at end of file