{selectedLen > 0 &&
-
+
{selectedLen}{' '}{gettext('selected')}
diff --git a/frontend/src/css/layout.css b/frontend/src/css/layout.css
index 1fe1261278..fe52f7a9e6 100644
--- a/frontend/src/css/layout.css
+++ b/frontend/src/css/layout.css
@@ -129,6 +129,20 @@
margin-left: 2px;
}
+.cur-view-path:after {
+ position: absolute;
+ left: 16px;
+ right: 16px;
+ bottom: 0;
+ content: '';
+}
+
+.cur-view-path {
+ transition-property: all;
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ transition-duration: 200ms;
+}
+
.cur-view-content {
padding: 0rem 1rem;
flex: 1;
diff --git a/frontend/src/css/lib-content-view.css b/frontend/src/css/lib-content-view.css
index dedb1c65fb..9f465f7d51 100644
--- a/frontend/src/css/lib-content-view.css
+++ b/frontend/src/css/lib-content-view.css
@@ -4,6 +4,12 @@
.cur-view-content.lib-content-container {
padding: 0;
+ background-color: #fff;
+ position: absolute;
+ top: 48px;
+ z-index: 2;
+ width: 100%;
+ border-top: 1px solid #e8e8e8;
}
.view-mode-container {
@@ -41,7 +47,7 @@
/*tree view */
.tree-view {
- margin-left: -9px;
+ margin-left: -12px;
padding: 12px 12px 12px 0;
line-height: 1.5;
flex: 1;
diff --git a/frontend/src/css/toolbar.css b/frontend/src/css/toolbar.css
index 09077e24e2..cff19a679b 100644
--- a/frontend/src/css/toolbar.css
+++ b/frontend/src/css/toolbar.css
@@ -35,6 +35,63 @@
/* end file-operation toolbar */
+/* begin view-mode toolbar */
+.view-modes {
+ padding: 2px;
+ background-color: #e5e6e7;
+ border-radius: 3px;
+ height: 32px;
+ width: 92px;
+ position: relative;
+}
+
+.sf-view-mode-btn {
+ width: 44px;
+ height: 28px;
+ padding: 0;
+ background-color: transparent;
+ color: #444;
+ font-size: 14px;
+ line-height: 2;
+ border: 0;
+ border-radius: 2px;
+ font-weight: normal;
+ position: absolute;
+ z-index: 2;
+ width: 48px;
+}
+
+.sf-view-mode-btn:hover {
+ background-color: transparent;
+}
+
+.sf-view-mode-btn:focus {
+ color: #444;
+ background-color: transparent;
+ border-color: none;
+ box-shadow: none;
+}
+
+.sf-view-mode-btn.btn-secondary:not(:disabled):not(.disabled):active:focus {
+ box-shadow: none;
+}
+
+.view-modes .view-modes-bg.transition-all {
+ transition-property: all;
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ transition-duration: 150ms;
+ background-color: #fff;
+ position: absolute;
+ width: 44px;
+ height: 28px;
+ top: 2px;
+ left: 2px;
+ z-index: 1;
+ opacity: 0.75;
+ border-radius: 3px;
+}
+/* end view-mode toolbar */
+
#cur-folder-more-op-toggle {
margin-left: 10px;
margin-right: -4px;
diff --git a/frontend/src/pages/lib-content-view/lib-content-container.js b/frontend/src/pages/lib-content-view/lib-content-container.js
index 516597ede3..231889701e 100644
--- a/frontend/src/pages/lib-content-view/lib-content-container.js
+++ b/frontend/src/pages/lib-content-view/lib-content-container.js
@@ -173,6 +173,10 @@ class LibContentContainer extends React.Component {
isRepoInfoBarShow = true;
}
}
+ let curViewPathStyle = { 'borderBottom': 'none' };
+ if (this.props.isDirentSelected) {
+ curViewPathStyle.transform = 'translateY(-50px)';
+ }
return (
@@ -182,32 +186,8 @@ class LibContentContainer extends React.Component {
{gettext('This library has been set to read-only by admin and cannot be updated.')}
}
-
- {this.props.isDirentSelected ?
-
:
+
{!this.props.pathExist && this.errMessage}