Polishing of UI changes (#745)

* Moving on to another date format possibility

* Corrected TPL subscription links

* Update site.css

* This can't be a good sign
This commit is contained in:
Imre Kristoffer Eilertsen 2019-04-06 02:38:20 +02:00 committed by Collin M. Barrett
parent 1708826e4d
commit 498b4a8820
3 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,5 @@
import * as React from "react";
import * as moment from "moment";
interface IProps {
updatedDate: string;
@ -7,8 +8,8 @@ interface IProps {
export const UpdatedDate = (props: IProps) =>
props.updatedDate
? <li className="list-group-item">
<p>Updated: (props.updatedDate).isValid()
? (props.updatedDate)Intl.DateTimeFormat().format(date)
<p>Updated: {moment(props.updatedDate).isValid()
? moment(props.updatedDate).local().format("l")
: "N/A"}</p>
</li>
: null;

View file

@ -22,7 +22,7 @@ export const SubscribeButton = (props: IProps) => {
titlePrefix = "";
}
const hrefTitle = `&amp;title=${encodeURIComponent(props.name)}`;
const hrefTitle = `${encodeURIComponent(props.name)}`;
let href;
if (props.url.indexOf(".tpl") > 0)
{
@ -31,7 +31,7 @@ if (props.url.indexOf(".tpl") > 0)
{
href = `x-littlesnitch:subscribe-rules?url=${encodeURIComponent(props.url)}`;
} else {
href = `abp:subscribe?location=${encodeURIComponent(props.url)}${hrefTitle}`;
href = `abp:subscribe?location=${encodeURIComponent(props.url)}&amp;title=${hrefTitle}`;
};
let title;
if (props.url.indexOf(".tpl") > 0)

View file

@ -1,2 +1,3 @@
body, h2, h3, h4, h5, blockquote { font-size: 16px; }
.container{ max-width:98vw!important;padding-left:7px!important }
.w-100{ padding-left:7px!important }