diff --git a/src/Common.css b/src/Common.css index 5891e20..03a9403 100644 --- a/src/Common.css +++ b/src/Common.css @@ -55,7 +55,6 @@ font-size: .9em; vertical-align: .05em; cursor: inherit; + padding: 0 .1rem; + margin-left: .15rem; } -.icon+label::before { - content: ' '; -} \ No newline at end of file diff --git a/src/Flows.js b/src/Flows.js index b2f2fcf..f7034e0 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -342,6 +342,15 @@ class FlowSidebar extends PureComponent { replies_cnt[r.name]++; }); + let main_thread_elem=( + {this.show_reply_bar('',e);}}> + {this.set_variant(null,variant);}} + /> + + ); + return (
@@ -356,10 +365,14 @@ class FlowSidebar extends PureComponent { -    - - - + {(this.state.replies.length>1 || this.state.rev) && + +    + + + + + } {!!this.props.token &&    @@ -374,12 +387,9 @@ class FlowSidebar extends PureComponent { }
- {this.show_reply_bar('',e);}}> - {this.set_variant(null,variant);}} - /> - + {!this.state.rev && + main_thread_elem + } {!!this.state.error_msg &&

回复加载失败

@@ -411,6 +421,9 @@ class FlowSidebar extends PureComponent { ))} + {this.state.rev && + main_thread_elem + } {!!this.props.token ? : diff --git a/src/Sidebar.js b/src/Sidebar.js index 3de56a3..cec5f9b 100644 --- a/src/Sidebar.js +++ b/src/Sidebar.js @@ -23,7 +23,7 @@ export class Sidebar extends PureComponent { {this.props.content}
-    +    {this.props.title}
diff --git a/src/Title.js b/src/Title.js index 8eaead5..063737c 100644 --- a/src/Title.js +++ b/src/Title.js @@ -130,18 +130,18 @@ class ControlBar extends PureComponent { return ( {({value: token})=>(
- + {!!token && - + } - { + { this.props.show_sidebar( 'P大树洞',
@@ -170,7 +170,7 @@ class ControlBar extends PureComponent { {!!token && - { + { this.props.show_sidebar( '发表树洞', { diff --git a/src/index.css b/src/index.css index 9f46326..aeec552 100644 --- a/src/index.css +++ b/src/index.css @@ -15,12 +15,19 @@ html { scrollbar-width: none; } -a { - color: #00c; +:root { + --var-link-color: #00c; +} +.root-dark-mode .left-container, .root-dark-mode .sidebar, .root-dark-mode .sidebar-title, .root-dark-mode .balance-popover { + --var-link-color: #9bf; } -.root-dark-mode .left-container a, .root-dark-mode .sidebar a, .root-dark-mode .sidebar-title a, .root-dark-mode .balance-popover a { - color: #9bf; +a { + color: var(--var-link-color); +} +a:not(.no-underline):hover { + border-bottom: 1px solid var(--var-link-color); + margin-bottom: -1px; } input, textarea {