From abc0e3650b9de427f4f9aeeab8d99f6b6a71cd34 Mon Sep 17 00:00:00 2001 From: liuhongbo <916196375@qq.com> Date: Wed, 15 May 2024 11:50:41 +0800 Subject: [PATCH] feat: style: optimize code --- .../src/pages/sdoc/sdoc-file-history/history-version.js | 7 ++++--- frontend/src/utils/utils.js | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/sdoc/sdoc-file-history/history-version.js b/frontend/src/pages/sdoc/sdoc-file-history/history-version.js index 19082eab69..42d32223a3 100644 --- a/frontend/src/pages/sdoc/sdoc-file-history/history-version.js +++ b/frontend/src/pages/sdoc/sdoc-file-history/history-version.js @@ -111,8 +111,8 @@ class HistoryVersion extends React.Component { {path[2] > 0 && (
)}
{this.state.isRenameShow ? - - :
{name}
+ + :
{name}
}
{moment(ctime).format('YYYY-MM-DD HH:mm')}
@@ -170,7 +170,8 @@ class HistoryVersion extends React.Component { {(path[0] !== 0 && path[1] !== 0 && path[2] !== 0) && {gettext('Copy')}} {gettext('Rename')} - )} + + )}
); diff --git a/frontend/src/utils/utils.js b/frontend/src/utils/utils.js index 6078240243..ef63828dc2 100644 --- a/frontend/src/utils/utils.js +++ b/frontend/src/utils/utils.js @@ -1634,4 +1634,3 @@ export const Utils = { }; export const isMobile = (typeof (window) !== 'undefined') && (window.innerWidth < 768 || navigator.userAgent.toLowerCase().match(/(ipod|ipad|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null); -