style(pending): fix position of state string

This commit is contained in:
plebeius.eth
2023-10-21 15:53:37 +02:00
parent 3964893e25
commit bfb3f3ffd9
2 changed files with 39 additions and 1 deletions
@@ -195,6 +195,23 @@ export const TopBar = styled.div`
overflow: hidden;
}
.stats-pending-container {
float: right;
margin-top: 3px;
margin-right: 30px;
overflow: hidden;
max-width: calc(100vw - 50vw);
}
#stats-pending {
display: inline-block;
max-width: calc(100vw - 50vw);
word-wrap: break-word;
white-space: nowrap;
text-overflow: '';
overflow: hidden;
}
.ellipsis-all {
white-space: nowrap;
}
@@ -246,6 +263,24 @@ export const TopBar = styled.div`
overflow: hidden;
}
.stats-pending-container {
height: 25px;
position: absolute;
text-align: left;
overflow: hidden;
width: 100vw;
margin-top: 8px;
}
#stats-pending {
display: inline-block;
max-width: 90vw;
word-wrap: break-word;
white-space: nowrap;
text-overflow: '';
overflow: hidden;
}
.ellipsis-all {
white-space: nowrap;
}
+4 -1
View File
@@ -291,7 +291,10 @@ const Pending = () => {
</Link>
]
</span>
<span className={stateString ? 'reply-stat ellipsis' : ''}>{stateString}</span>
<div className='stats-pending-container'>
<span id='stats-pending'>{stateString}</span>
<span className={stateString ? 'ellipsis-all' : ''} />
</div>
<hr />
</TopBar>
<Tooltip id='tooltip' className='tooltip' />