diff --git a/services/web/frontend/js/features/outline/components/documentation-button.tsx b/services/web/frontend/js/features/outline/components/documentation-button.tsx
index 13c3f844cf..514c429b29 100644
--- a/services/web/frontend/js/features/outline/components/documentation-button.tsx
+++ b/services/web/frontend/js/features/outline/components/documentation-button.tsx
@@ -33,36 +33,28 @@ function DocumentationButton() {
function handleDocumentationLinkClick() {
sendMB('file-tree-documentation-click')
}
+
+ if (!showDocumentationButton) return null
+
return (
-
- {showDocumentationButton ? (
-
- ) : null}
+
)
}
diff --git a/services/web/frontend/stylesheets/app/editor/outline.less b/services/web/frontend/stylesheets/app/editor/outline.less
index 60f7520e73..715772abd8 100644
--- a/services/web/frontend/stylesheets/app/editor/outline.less
+++ b/services/web/frontend/stylesheets/app/editor/outline.less
@@ -15,29 +15,32 @@
opacity: 0.5;
}
-.documentation-btn.outline-header-expand-collapse-btn {
- justify-content: space-between;
- padding-right: 0;
-}
-
-.documentation-btn .btn {
- padding-right: 0;
-}
-
.documentation-link {
display: flex;
- margin-left: 0.5em;
+ flex: 1;
}
-.outline-header {
+.documentation-btn-container {
.toolbar-small-mixin;
.toolbar-alt-mixin;
display: flex;
- flex-shrink: 0;
- border-bottom: 1px solid @toolbar-border-color;
- border-top: 1px solid @toolbar-border-color;
+ align-items: center;
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
+ & *,
+ & :hover {
+ color: @white;
+ text-decoration: none;
+ }
+ &:hover {
+ background-color: @outline-header-hover-bg;
+ }
}
-.outline-footer {
+
+.documentation-close {
+ padding: 0;
+}
+
+.outline-header {
.toolbar-small-mixin;
.toolbar-alt-mixin;
display: flex;