+
{e.preventDefault();e.target.click();}} />
- {this.props.content}
+ {cur_content}
-
- {this.props.title}
+
+ {this.props.stack.length>2 &&
+
+ }
+ {cur_title}
);
diff --git a/src/Title.css b/src/Title.css
index 330780e..c493e28 100644
--- a/src/Title.css
+++ b/src/Title.css
@@ -23,7 +23,7 @@
}
.control-btn {
- flex: 0 0 2em;
+ flex: 0 0 4.5em;
text-align: center;
color: black;
border-radius: 5px;
@@ -32,6 +32,17 @@
background-color: #555555;
color: white;
}
+.control-btn-label {
+ margin-left: .25em;
+}
+@media screen and (max-width: 900px) {
+ .control-btn {
+ flex: 0 0 2em;
+ }
+ .control-btn-label {
+ display: none;
+ }
+}
.root-dark-mode .control-btn {
color: var(--foreground-dark);
@@ -42,11 +53,6 @@
opacity: 1;
}
-.control-btn .icon:before {
- margin: .5em;
- display: inline-block;
-}
-
.control-search {
flex: auto;
color: black;
diff --git a/src/Title.js b/src/Title.js
index 063737c..253121d 100644
--- a/src/Title.js
+++ b/src/Title.js
@@ -132,10 +132,12 @@ class ControlBar extends PureComponent {