diff --git a/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx b/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx index 7b9f1d7950..73d78a2cc0 100644 --- a/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx +++ b/frontend/appflowy_web_app/src/components/publish/outline/OutlineItem.tsx @@ -36,12 +36,18 @@ function OutlineItem({ view }: { view: PublishViewInfo }) { const navigateToView = useContext(PublishContext)?.toView; const renderItem = (item: PublishViewInfo) => { const { icon, layout, name, view_id } = item; + const hasChildren = Boolean(item.child_views?.length); return ( -
+
{item.child_views?.length ? getIcon() : null} @@ -63,14 +69,17 @@ function OutlineItem({ view }: { view: PublishViewInfo }) { ); }; + const hasChildren = Boolean(view.child_views?.length); + return (
{renderItem(view)}
{view.child_views diff --git a/frontend/appflowy_web_app/src/styles/variables/dark.variables.css b/frontend/appflowy_web_app/src/styles/variables/dark.variables.css index de8fcf9824..f53e295a2c 100644 --- a/frontend/appflowy_web_app/src/styles/variables/dark.variables.css +++ b/frontend/appflowy_web_app/src/styles/variables/dark.variables.css @@ -19,7 +19,7 @@ --fill-toolbar: #0F111C; --fill-selector: #232b38; --fill-list-active: #3c4557; - --fill-list-hover: #005174; + --fill-list-hover: rgba(255, 255, 255, 0.1); --content-blue-400: #00bcf0; --content-blue-300: #52d1f4; --content-blue-600: #009fd1;