Edit>} icon={null} key={'edit'}>
- editor?.undo()} kbd={`${mod} + z`} disabled={!editor}>
+ editor?.undo()} kbd={`${mod} + z`} disabled={!editor}>
Undo
- editor?.redo()} kbd={`${mod} + Shift + z`} disabled={!editor}>
+ editor?.redo()} kbd={`${mod} + Shift + z`} disabled={!editor}>
Redo
- editor?.find()} kbd={`${mod} + f`} disabled={!editor}>
+ editor?.find()} kbd={`${mod} + f`} disabled={!editor}>
Find / Replace
- editor?.foldCode()} disabled={!editor}>
+ editor?.foldCode()} disabled={!editor}>
Fold all lines
- editor?.unfoldCode()} disabled={!editor}>
+ editor?.unfoldCode()} disabled={!editor}>
Unfold all lines
@@ -97,7 +97,7 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props })
{navSlots.go}
- Recent Brews>} icon={null} key={'recent'}>
+
diff --git a/client/homebrew/navbar/navbar.less b/client/homebrew/navbar/navbar.less
index c0062a6ee..d00b6c99d 100644
--- a/client/homebrew/navbar/navbar.less
+++ b/client/homebrew/navbar/navbar.less
@@ -21,7 +21,7 @@
height: 100%;
padding: 5px;
cursor: pointer;
- max-width: 150px;
+ max-width: 220px;
text-wrap: pretty;
&:has(> button, > a) {
@@ -153,7 +153,10 @@
}
}
&.save {
- width: 90px;
+ width: 100px;
+ display:grid;
+ place-items: stretch;
+
&.neverSaved {
background-color: @orange;
color: #fff;
@@ -173,18 +176,32 @@
.navItem,
.menu-wrapper {
--activeTriggerColor: #666;
+
&:has(ul):not(:has(ul :is(button, a):not(:disabled))) {
color: grey; //faux disabled if all buttons are disabled
}
&:not(.header):hover {
background: #484848;
}
- &:has(> i, > kbd, > img) {
+ &:not(.header):has(:popover-open) {
+ background: var(--activeTriggerColor);
+ }
+ &:has(> kbd) {
display: flex;
gap: 5px;
justify-content: space-between;
}
+ i {
+ position:absolute;
+ left:5px;
+
+ &.caret {
+ left:unset;
+ right:5px;
+ }
+ }
+
&.header {
cursor: default;
place-content: center;
@@ -197,6 +214,7 @@
gap: 5px;
height: 2.7em;
isolation: isolate;
+ padding-left:5px;
&.header {
padding: 5px 0;
@@ -245,6 +263,10 @@
translate: -5px;
}
}
+ span {
+ text-align: left;
+ }
+
}
> ul {
@@ -269,10 +291,11 @@
font-size: 13px;
text-transform: capitalize;
padding-bottom: 5px;
- min-width: 80px;
+ min-width: 130px;
.navItem {
min-height: 2.2em;
+ padding-left: 25px;
&.save {
width: 100%;
@@ -285,6 +308,9 @@
margin-bottom: 5px;
}
+ button.menu-item {
+ padding:0;
+ }
li {
margin-block: 2px;
}
@@ -302,7 +328,7 @@
color: #777;
}
display: grid;
- place-items: center;
+ place-items: stretch;
height: 100%;
width: 100%;
padding: 5px 10px;
diff --git a/client/homebrew/navbar/share.navitem.jsx b/client/homebrew/navbar/share.navitem.jsx
index 0a8798f35..218c4dc34 100644
--- a/client/homebrew/navbar/share.navitem.jsx
+++ b/client/homebrew/navbar/share.navitem.jsx
@@ -25,13 +25,13 @@ const getRedditLink = (brew)=>{
export default ({ brew, disabled, currentPage })=>{
return (
-
+
edit this brew
-
+
view share page
- {navigator.clipboard.writeText(`${global.config.baseUrl}/share/${getShareId(brew)}`);}} disabled={disabled}>
+ {navigator.clipboard.writeText(`${global.config.baseUrl}/share/${getShareId(brew)}`);}} disabled={disabled}>
copy share url
{currentPage > 1 &&
@@ -39,7 +39,7 @@ export default ({ brew, disabled, currentPage })=>{
onClick={()=>{navigator.clipboard.writeText(`${global.config.baseUrl}/share/${getShareId(brew)}#p${currentPage}`);}}>
copy url (page {currentPage})
}
-
+
post to reddit
diff --git a/client/homebrew/pages/basePages/editorPage/editorPage.jsx b/client/homebrew/pages/basePages/editorPage/editorPage.jsx
index 8f8d2794a..d8d4be700 100644
--- a/client/homebrew/pages/basePages/editorPage/editorPage.jsx
+++ b/client/homebrew/pages/basePages/editorPage/editorPage.jsx
@@ -390,7 +390,9 @@ const EditorPage = (props)=>{
}
- {error? : renderSaveButton()}
+
+ {error? : renderSaveButton()}
+