zavadil-react-common 1.2.103 → 1.2.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,11 +18,11 @@ export function CacheStatsControl({name, stats}: CacheStatsControlProps) {
18
18
  {stats.capacity > 0 && ' / '}
19
19
  {stats.capacity > 0 && stats.capacity}
20
20
  ]
21
- </pre>
21
+ </pre>
22
22
  </div>
23
23
  {
24
24
  stats.capacity > 0 &&
25
- <div className="flex-grow-1">
25
+ <div className="p-1">
26
26
  <ProgressBar
27
27
  now={stats.cachedItems}
28
28
  min={0}
@@ -18,7 +18,7 @@ export function JavaHeapControl({stats}: WorkerJavaHeapControlProps) {
18
18
  <pre>Java Heap</pre>
19
19
  <pre>[{ByteUtil.formatByteSize(size)} / {ByteUtil.formatByteSize(max)}]</pre>
20
20
  </div>
21
- <div>
21
+ <div className="d-flex align-items-center gap-2">
22
22
  <pre>Used:</pre>
23
23
  <Badge className="bg-warning text-bg-warning">
24
24
  {ByteUtil.formatByteSize(used)}
@@ -28,10 +28,12 @@ export function JavaHeapControl({stats}: WorkerJavaHeapControlProps) {
28
28
  {ByteUtil.formatByteSize(free)}
29
29
  </Badge>
30
30
  </div>
31
- <ProgressBar min={0} max={max}>
32
- <ProgressBar variant="warning" min={0} now={used} max={max}/>
33
- <ProgressBar variant="success" min={0} now={free} max={max}/>
34
- </ProgressBar>
31
+ <div className="p-1">
32
+ <ProgressBar min={0} max={max}>
33
+ <ProgressBar variant="warning" min={0} now={used} max={max}/>
34
+ <ProgressBar variant="success" min={0} now={free} max={max}/>
35
+ </ProgressBar>
36
+ </div>
35
37
  </div>
36
38
  );
37
39
  }
@@ -17,7 +17,7 @@ export function QueueStatsControl({name, stats}: QueueStatsControlProps) {
17
17
  <pre>[{stats.processed} / {max}]</pre>
18
18
  <QueueStateControl state={stats.state}/>
19
19
  </div>
20
- <div>
20
+ <div className="p-1">
21
21
  <ProgressBar variant="primary" striped={true} animated={true} min={0} now={stats.processed} max={max || 1}/>
22
22
  </div>
23
23
  </div>