diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-06-02 10:32:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-02 10:32:20 -0500 |
| commit | 908972ae3655973cb2d1536e12b7c2dd42437062 (patch) | |
| tree | e6be8175b916bc27981d70f3aaf1309ba8d4d083 /src/web | |
| parent | 2bd24b38f046d9e7b37825db6af2756e43ba0dfc (diff) | |
| parent | a8f5f652eec420922f01d3009d354d43d72fd994 (diff) | |
| download | slskd-908972ae3655973cb2d1536e12b7c2dd42437062.tar.gz | |
Merge pull request #494 from slskd/fix-search-buttons
Fix header button alignment on search detail
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/Search/Detail/SearchDetailHeader.js | 6 | ||||
| -rw-r--r-- | src/web/src/components/Search/Search.css | 17 |
2 files changed, 15 insertions, 8 deletions
diff --git a/src/web/src/components/Search/Detail/SearchDetailHeader.js b/src/web/src/components/Search/Detail/SearchDetailHeader.js index ac613249..2071540f 100644 --- a/src/web/src/components/Search/Detail/SearchDetailHeader.js +++ b/src/web/src/components/Search/Detail/SearchDetailHeader.js @@ -63,11 +63,11 @@ const SearchDetailHeader = ({ // if the screen is less than 684 pixels, display the action buttons in a new segment, with full text. return ( <> - <Segment className='search-segment' raised> - <Header className='search-detail-header'> + <Segment className='search-detail-header-segment' raised> + <Header> <SearchStatusIcon state={state}/>{searchText} </Header> - {!isTinyScreen && <div className='search-detail-action-button'> + {!isTinyScreen && <div className='search-detail-header-buttons'> <RefreshButton/> <StopOrDeleteButton/> </div>} diff --git a/src/web/src/components/Search/Search.css b/src/web/src/components/Search/Search.css index f66a3bc7..ca31d308 100644 --- a/src/web/src/components/Search/Search.css +++ b/src/web/src/components/Search/Search.css @@ -105,12 +105,19 @@ width: 5px !important; } -.search-detail-header { +.search-detail-header-segment { + margin-top: 15px !important; + height: 78px !important; + padding-top: 20px !important; + display: flex; +} + +.search-detail-header-segment > .header { font-weight: normal !important; - margin-top: 12px !important; + margin-top: 8px !important; } -.search-detail-action-button { - float: right; - margin-top: -48px !important; +.search-detail-header-buttons { + display: inline; + margin-left: auto; }
\ No newline at end of file |
