mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Fix flickering caused by turbolinks and other minor fixes
This commit is contained in:
@@ -50,7 +50,10 @@ const PostList = ({
|
|||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
:
|
:
|
||||||
!areLoading ? <span className="infoText text-muted">There are no posts.</span> : null
|
areLoading ?
|
||||||
|
<span className="infoText">Loading...</span>
|
||||||
|
:
|
||||||
|
<span className="infoText text-muted">There are no posts.</span>
|
||||||
}
|
}
|
||||||
</InfiniteScroll>
|
</InfiniteScroll>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,9 +24,6 @@ const PostStatusFilter = ({
|
|||||||
}: Props) => (
|
}: Props) => (
|
||||||
<div className="box sidebar-box postStatusFilterContainer">
|
<div className="box sidebar-box postStatusFilterContainer">
|
||||||
<span className="smallTitle">Filter by post status:</span>
|
<span className="smallTitle">Filter by post status:</span>
|
||||||
|
|
||||||
{ areLoading ? <Spinner /> : null }
|
|
||||||
{ error ? <span className="error">{error}</span> : null }
|
|
||||||
{
|
{
|
||||||
postStatuses.map((postStatus, i) => (
|
postStatuses.map((postStatus, i) => (
|
||||||
<PostStatusListItem
|
<PostStatusListItem
|
||||||
@@ -41,6 +38,8 @@ const PostStatusFilter = ({
|
|||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
{ areLoading ? <Spinner /> : null }
|
||||||
|
{ error ? <span className="error">{error}</span> : null }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<%= csp_meta_tag %>
|
<%= csp_meta_tag %>
|
||||||
|
|
||||||
|
<meta name="turbolinks-cache-control" content="no-cache">
|
||||||
|
|
||||||
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||||
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user