Skip to content

Commit eb8e1f2

Browse files
committed
fix(reddit/tabBar): showing context menu in More
Fixes #3136
1 parent 8862426 commit eb8e1f2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CustomApps/reddit/OptionsMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const OptionsMenu = react.memo(({ options, onSelect, selected, defaultValue, bol
5555
),
5656
trigger: "click",
5757
action: "toggle",
58-
renderInline: true,
58+
renderInline: false,
5959
},
6060
react.createElement(
6161
"button",

CustomApps/reddit/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ class Grid extends react.Component {
237237
}
238238

239239
render() {
240+
const expFeatures = JSON.parse(localStorage.getItem("spicetify-exp-features") || "{}");
241+
const isGlobalNav = expFeatures?.enableGlobalNavBar?.value !== "control";
242+
const version = Spicetify.Platform.version.split(".").map((i) => Number.parseInt(i));
243+
244+
const tabBarMargin = {
245+
marginTop: isGlobalNav || (version[0] === 1 && version[1] === 2 && version[2] >= 45) ? "60px" : "0px",
246+
};
240247
return react.createElement(
241248
"section",
242249
{
@@ -246,6 +253,7 @@ class Grid extends react.Component {
246253
"div",
247254
{
248255
className: "reddit-header",
256+
style: tabBarMargin,
249257
},
250258
react.createElement("h1", null, this.props.title),
251259
react.createElement(SortBox, {

0 commit comments

Comments
 (0)