Skip to content

Commit

Permalink
[12.0] share admin animation time change
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed May 9, 2024
1 parent ccea398 commit 0f785bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/main-side-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ class MainSideNav extends React.Component {
);
}
return (
<ul id="share-admin-sub-nav" className={`nav sub-nav nav-pills flex-column ${this.state.sharedExtended ? 'side-panel-slide' : 'side-panel-slide-up'}`} style={style} >
<ul
id="share-admin-sub-nav"
className={`nav sub-nav nav-pills flex-column ${this.state.sharedExtended ? 'side-panel-slide-share-admin' : 'side-panel-slide-up-share-admin'}`}
style={style}
>
{canAddRepo && (
<li className="nav-item">
<Link to={siteRoot + 'share-admin-libs/'} className={`nav-link ellipsis ${this.getActiveClass('share-admin-libs')}`} title={gettext('Libraries')} onClick={(e) => this.tabItemClick(e, 'share-admin-libs')}>
Expand Down
11 changes: 11 additions & 0 deletions media/css/seahub_react.css
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ a, a:hover { color: #ec8000; }
margin-right: 6px;
}

/* files container height more than 200px, use 0.3s animation */
.side-panel-slide {
transition: all .3s ease-in-out;
}
Expand All @@ -753,6 +754,16 @@ a, a:hover { color: #ec8000; }
height: 0;
}

/* share admin container height less than 100px, use 0.15s animation */
.side-panel-slide-share-admin {
transition: all .15s ease-in-out;
}

.side-panel-slide-up-share-admin {
transition: all .15s ease-in-out;
height: 0;
}

/* about dialog */
.about-content {
min-width: 280px;
Expand Down

0 comments on commit 0f785bc

Please sign in to comment.