Merge pull request #54 from phillipthelen/smaller-screens

Improve support for smaller screens
This commit is contained in:
Abdenasser Elidrissi 2024-11-08 14:42:48 +01:00 committed by GitHub
commit ce69f52fad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 15 deletions

View File

@ -452,5 +452,6 @@
.stat-panel:nth-child(4), .stat-panel:nth-child(4),
.stat-panel:nth-child(5) { .stat-panel:nth-child(5) {
flex: 0.8; /* Storage, System, and Network: less space */ flex: 0.8; /* Storage, System, and Network: less space */
min-width: 125px;
} }
</style> </style>

View File

@ -64,7 +64,6 @@
style:background={$themeStore.colors.green} style:background={$themeStore.colors.green}
></div> ></div>
</div> </div>
{$themeStore.label}
</div> </div>
<span class="icon">{showMenu ? "▼" : "▶"}</span> <span class="icon">{showMenu ? "▼" : "▶"}</span>
</button> </button>

View File

@ -46,20 +46,11 @@
<div class="search-box"> <div class="search-box">
<div class="search-input-wrapper"> <div class="search-input-wrapper">
<input <input
type="text" type="search"
placeholder="Search processes" placeholder="Search processes"
bind:value={searchTerm} bind:value={searchTerm}
class="search-input" class="search-input"
/> />
{#if searchTerm}
<button
class="btn-clear"
on:click={() => (searchTerm = "")}
title="Clear search"
>
Clear
</button>
{/if}
</div> </div>
</div> </div>
<div class="toolbar-group"> <div class="toolbar-group">
@ -98,10 +89,10 @@
> >
« «
</button> </button>
<span class="page-info"> <div class="page-info">
Page {currentPage} of {totalPages} <span>Page {currentPage} of {totalPages}</span>
<span class="results-info">({totalResults} processes)</span> <span class="results-info">({totalResults} processes)</span>
</span> </div>
<button <button
class="btn-page" class="btn-page"
disabled={currentPage === totalPages} disabled={currentPage === totalPages}
@ -118,6 +109,7 @@
</button> </button>
</div> </div>
</div> </div>
<div class="toolbar-spacer"></div>
<div class="column-toggle"> <div class="column-toggle">
<button <button
@ -306,8 +298,13 @@
font-size: 12px; font-size: 12px;
color: var(--subtext0); color: var(--subtext0);
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
gap: 8px; flex-shrink: 0;
}
.page-info span {
display: block;
} }
.results-info { .results-info {