fix: status bar css and format
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
overflow: hidden;
|
||||||
|
flex-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-bar-left,
|
.status-bar-left,
|
||||||
@@ -15,6 +17,13 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
overflow: hidden;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-bar-left {
|
||||||
|
flex-shrink: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-bar-item {
|
.status-bar-item {
|
||||||
@@ -23,6 +32,16 @@
|
|||||||
gap: 6px;
|
gap: 6px;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-bar-item .task-message-text {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-bar-item:hover {
|
.status-bar-item:hover {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export const StatusBar: React.FC = () => {
|
|||||||
{runningTasks.length > 0 && (
|
{runningTasks.length > 0 && (
|
||||||
<div className="status-bar-item">
|
<div className="status-bar-item">
|
||||||
<span className="task-spinner" />
|
<span className="task-spinner" />
|
||||||
<span>{runningTasks[0].message}</span>
|
<span className="task-message-text" title={runningTasks[0].message}>{runningTasks[0].message}</span>
|
||||||
{runningTasks.length > 1 && (
|
{runningTasks.length > 1 && (
|
||||||
<span className="text-muted">{t('statusBar.more', { count: runningTasks.length - 1 })}</span>
|
<span className="text-muted">{t('statusBar.more', { count: runningTasks.length - 1 })}</span>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user