fix: logs viewer do not scroll after opened

This commit is contained in:
jialin
2024-10-22 15:36:53 +08:00
parent a0a1b8b3e8
commit 902bb06353
7 changed files with 80 additions and 18 deletions
+4 -3
View File
@@ -10,8 +10,7 @@ const VersionInfo: React.FC<{ intl: any }> = ({ intl }) => {
const latestVersion = getAtomStorage(UpdateCheckAtom).latest_version;
const currentVersion = getAtomStorage(GPUStackVersionAtom)?.version;
const isProd =
document.documentElement.getAttribute('data-env') === 'production';
const isProd = currentVersion !== '0.0.0';
const uiVersion = document.documentElement.getAttribute('data-version');
@@ -51,7 +50,9 @@ const VersionInfo: React.FC<{ intl: any }> = ({ intl }) => {
{getAtomStorage(userAtom)?.is_admin && (
<div className="upgrade">
<span className="m-l-5">
{latestVersion && latestVersion !== currentVersion
{latestVersion &&
latestVersion !== currentVersion &&
latestVersion !== '0.0.0'
? intl.formatMessage(
{ id: 'users.version.update' },
{ version: latestVersion }