mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
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:
parent
1708826e4d
commit
498b4a8820
3 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export const SubscribeButton = (props: IProps) => {
|
|||
titlePrefix = "";
|
||||
}
|
||||
|
||||
const hrefTitle = `&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)}&title=${hrefTitle}`;
|
||||
};
|
||||
let title;
|
||||
if (props.url.indexOf(".tpl") > 0)
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Reference in a new issue