mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix loading state indicator sytling in p/all
This commit is contained in:
@@ -1428,6 +1428,36 @@ export const TopBar = styled.div`
|
||||
}
|
||||
|
||||
@media (min-width: 480px) {
|
||||
.stats-all-container {
|
||||
float: right;
|
||||
margin-top: 3px;
|
||||
margin-right: 30px;
|
||||
overflow: hidden;
|
||||
max-width: calc(100vw - 50vw);
|
||||
}
|
||||
|
||||
#stats-all {
|
||||
display: inline-block;
|
||||
max-width: calc(100vw - 50vw);
|
||||
word-wrap: break-word;
|
||||
white-space: nowrap;
|
||||
text-overflow: "";
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ellipsis-all {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ellipsis-all:after {
|
||||
content: "\\2026";
|
||||
position: absolute;
|
||||
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
|
||||
animation: ellipsis steps(4,end) 1500ms infinite;
|
||||
width: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#catalog-button-mobile {
|
||||
display: none;
|
||||
}
|
||||
@@ -1450,6 +1480,37 @@ export const TopBar = styled.div`
|
||||
@media (max-width: 480px) {
|
||||
line-height: 25px;
|
||||
|
||||
.stats-all-container {
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
margin-top: 13px;
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
#stats-all {
|
||||
display: inline-block;
|
||||
max-width: 90vw;
|
||||
word-wrap: break-word;
|
||||
white-space: nowrap;
|
||||
text-overflow: "";
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ellipsis-all {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ellipsis-all:after {
|
||||
content: "\\2026";
|
||||
position: absolute;
|
||||
-webkit-animation: ellipsis steps(4,end) 1200ms infinite;
|
||||
animation: ellipsis steps(4,end) 1500ms infinite;
|
||||
width: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -666,9 +666,12 @@ const All = () => {
|
||||
{subplebbits.state === "succeeded" ? (
|
||||
null
|
||||
) : (
|
||||
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||
<span className={stateString ? "ellipsis" : ""}>{stateString}</span>
|
||||
</div>
|
||||
<div className="stats-all-container">
|
||||
<span id="stats-all">
|
||||
{stateString}
|
||||
</span>
|
||||
<span className={stateString ? "ellipsis-all" : ""} />
|
||||
</div>
|
||||
)}
|
||||
<div id="catalog-button-mobile">
|
||||
<span className="btn-wrap">
|
||||
|
||||
Reference in New Issue
Block a user