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;
}
} else {
throw (`${response.status}`);
throw 'error';
}
} catch (error) {
+3 -3
View File
@@ -3255,13 +3255,13 @@
.global-no-result {
text-align: center;
padding: 30px 20px;
padding: 40px 20px;
background: #f8fafc;
border-radius: 16px;
margin: 20px 0;
&-text {
margin-bottom: 40px;
.btn-search {
margin-top: 40px;
}
}
+2 -3
View File
@@ -205,12 +205,11 @@ export function FileSearchPanel({ fileId, ref }: { fileId: string | null, ref: a
{(searchedGlobalFilesShowNull && !loading) && (
<div className="global-no-result" id="global-no-result">
<div className="global-no-result-icon">&zwj;</div>
<h4>{t('no-similar-global-title')}</h4>
<p className="global-no-result-text">
{t('no-similar-global-description')}
</p>
<button
{/* <button
onClick={() => {
if (fileId) {
handlerSearchGlobalFile(fileId, 1);
@@ -219,7 +218,7 @@ export function FileSearchPanel({ fileId, ref }: { fileId: string | null, ref: a
className="btn btn-primary btn-search"
>
{t('search-again')}
</button>
</button> */}
</div>
)}