From e8fd9a72b8e1dc16785deb752a969b389f28abc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Thu, 8 Oct 2026 00:22:31 +0200 Subject: [PATCH] correctly disable --- client/homebrew/navbar/navbar.jsx | 2 +- client/homebrew/navbar/navbar.less | 15 -------------- client/homebrew/navbar/share.navitem.jsx | 26 +++++------------------- 3 files changed, 6 insertions(+), 37 deletions(-) diff --git a/client/homebrew/navbar/navbar.jsx b/client/homebrew/navbar/navbar.jsx index 9a53658b5..28cbf1fb3 100644 --- a/client/homebrew/navbar/navbar.jsx +++ b/client/homebrew/navbar/navbar.jsx @@ -47,7 +47,7 @@ const Navbar = ({ account, brew, title = '', props }) => { Get txt - +
Delete File Publish File diff --git a/client/homebrew/navbar/navbar.less b/client/homebrew/navbar/navbar.less index a83d5faf2..51f307a46 100644 --- a/client/homebrew/navbar/navbar.less +++ b/client/homebrew/navbar/navbar.less @@ -65,20 +65,6 @@ background-color: transparent; } - // "The Homebrewery" logo - &.homebrewLogo { - .animate(color); - font-family: 'CodeBold'; - font-size: 12px; - color: white; - div { - margin-top: 2px; - margin-bottom: -2px; - } - &:hover { - color: @blue; - } - } &.metadata { position: relative; display: flex; @@ -230,7 +216,6 @@ .navItem, .menu-wrapper { --activeTriggerColor: #666; - &:has(ul):not(:has(ul button:not(:disabled))) { color:grey; //faux disabled if all buttons are disabled } diff --git a/client/homebrew/navbar/share.navitem.jsx b/client/homebrew/navbar/share.navitem.jsx index be1b69b82..058e36089 100644 --- a/client/homebrew/navbar/share.navitem.jsx +++ b/client/homebrew/navbar/share.navitem.jsx @@ -17,32 +17,16 @@ const getRedditLink = (brew)=>{ return `https://www.reddit.com/r/UnearthedArcana/submit?title=${encodeURIComponent(brew.title.toWellFormed())}&text=${encodeURIComponent(text)}`; }; -export default ({ brew, currentPage })=> { - if(!brew) return ( -
- - share - - - view - - - copy url - - - post to reddit - -
- ) +export default ({ brew, disabled, currentPage })=> { return (
- + share - + view - {navigator.clipboard.writeText(`${global.config.baseUrl}/share/${getShareId(brew)}`);}}> + {navigator.clipboard.writeText(`${global.config.baseUrl}/share/${getShareId(brew)}`);}} disabled={disabled}> copy url {currentPage > 1 && @@ -51,7 +35,7 @@ export default ({ brew, currentPage })=> { onClick={()=>{navigator.clipboard.writeText(`${global.config.baseUrl}/share/${getShareId(brew)}#p${currentPage}`);}}> copy url (page {currentPage}) } - + post to reddit