change styles and remove research button
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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">‍</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>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user