change styles and remove research button

This commit is contained in:
smanylov
2026-02-23 13:53:36 +07:00
parent 1b9b843f1a
commit a33ccf4180
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export async function searchGlobalFiles(fileId: string, currentPage: number) {
throw parsed; throw parsed;
} }
} else { } else {
throw (`${response.status}`); throw 'error';
} }
} catch (error) { } catch (error) {
+3 -3
View File
@@ -3255,13 +3255,13 @@
.global-no-result { .global-no-result {
text-align: center; text-align: center;
padding: 30px 20px; padding: 40px 20px;
background: #f8fafc; background: #f8fafc;
border-radius: 16px; border-radius: 16px;
margin: 20px 0; margin: 20px 0;
&-text { .btn-search {
margin-bottom: 40px; margin-top: 40px;
} }
} }
+2 -3
View File
@@ -205,12 +205,11 @@ export function FileSearchPanel({ fileId, ref }: { fileId: string | null, ref: a
{(searchedGlobalFilesShowNull && !loading) && ( {(searchedGlobalFilesShowNull && !loading) && (
<div className="global-no-result" id="global-no-result"> <div className="global-no-result" id="global-no-result">
<div className="global-no-result-icon">&zwj;</div>
<h4>{t('no-similar-global-title')}</h4> <h4>{t('no-similar-global-title')}</h4>
<p className="global-no-result-text"> <p className="global-no-result-text">
{t('no-similar-global-description')} {t('no-similar-global-description')}
</p> </p>
<button {/* <button
onClick={() => { onClick={() => {
if (fileId) { if (fileId) {
handlerSearchGlobalFile(fileId, 1); handlerSearchGlobalFile(fileId, 1);
@@ -219,7 +218,7 @@ export function FileSearchPanel({ fileId, ref }: { fileId: string | null, ref: a
className="btn btn-primary btn-search" className="btn btn-primary btn-search"
> >
{t('search-again')} {t('search-again')}
</button> </button> */}
</div> </div>
)} )}