Remove unused variable and fix no results alignment
This commit is contained in:
@@ -340,7 +340,9 @@ const SearchResults: FC<SearchResultsProps> = ({ serverId = window.ApiClient.ser
|
||||
/>
|
||||
|
||||
{allEmpty && debouncedQuery && !isLoading && (
|
||||
<div className='sorry-text'>{globalize.translate('SearchResultsEmpty', debouncedQuery)}</div>
|
||||
<div className='noItemsMessage centerMessage'>
|
||||
{globalize.translate('SearchResultsEmpty', debouncedQuery)}
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -9,14 +9,3 @@
|
||||
font-size: 2em;
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
.sorry-text {
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
font-family: inherit;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user