diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-07-19 07:19:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-19 07:19:33 -0500 |
| commit | 0abfcd4e5e05af7115e57c1ff597f1ef5ac8030c (patch) | |
| tree | 56e33a60e148311fc25953a22955926752d855f9 | |
| parent | 743b7bb4ccf2698c7d1d3bb25efecd8645929709 (diff) | |
| parent | d398fb0050608b9cebba463c7038192b98117b66 (diff) | |
| download | slskd-0abfcd4e5e05af7115e57c1ff597f1ef5ac8030c.tar.gz | |
Merge pull request #935 from xyhhx/master
improve mobile layout
| -rw-r--r-- | src/web/src/components/App.css | 12 | ||||
| -rw-r--r-- | src/web/src/components/Search/List/SearchList.js | 4 | ||||
| -rw-r--r-- | src/web/src/components/Search/Search.css | 5 |
3 files changed, 17 insertions, 4 deletions
diff --git a/src/web/src/components/App.css b/src/web/src/components/App.css index 3c613dd7..ceb60536 100644 --- a/src/web/src/components/App.css +++ b/src/web/src/components/App.css @@ -111,6 +111,9 @@ body { } .app { + position: absolute !important; + left: 0; + right: 0; margin: auto; border: 0px !important; border-radius: 0% !important; @@ -118,12 +121,13 @@ body { } .pushable > .pusher.app-content { - margin-top: 70px; background: var(--background-color); } .navigation { - overflow: overlay; + overflow: overlay !important; + position: sticky !important; + top: 0 !important; } .result-card { @@ -251,4 +255,8 @@ body { .ui.dimmer .ui.modal-loader.loader:after { border-color: #767676 transparent transparent; +} + +.search-list-wrapper { + overflow-x: auto; }
\ No newline at end of file diff --git a/src/web/src/components/Search/List/SearchList.js b/src/web/src/components/Search/List/SearchList.js index 11cfcb22..b78c7919 100644 --- a/src/web/src/components/Search/List/SearchList.js +++ b/src/web/src/components/Search/List/SearchList.js @@ -21,12 +21,12 @@ const SearchList = ({ return ( <Card className='search-list-card' raised> <Card.Content> - <div> + <div className='search-list-wrapper'> <Switch connecting={connecting && <Loader active inline='centered' size='small'/>} error={error && <ErrorSegment caption={error} />} > - <Table size='large'> + <Table size='large' className='unstackable'> <Table.Header> <Table.Row> <Table.HeaderCell className="search-list-action"><Icon name="info circle"/></Table.HeaderCell> diff --git a/src/web/src/components/Search/Search.css b/src/web/src/components/Search/Search.css index ca31d308..817d87b9 100644 --- a/src/web/src/components/Search/Search.css +++ b/src/web/src/components/Search/Search.css @@ -68,6 +68,11 @@ width: 100%; } +.ui.search-input > input { + padding: 0; + text-indent: 1em; +} + .search-loader { margin-top: 50px !important; } |
