Skip to content

Commit db9421a

Browse files
committed
My Changes
1 parent 989161f commit db9421a

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

packages/Playlist/playlist/playlistMode/PlaylistUI.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,20 @@ const Playlist = () => {
755755
<span class="material-symbols-outlined">add</span>
756756
{t("create")}
757757
</Button>
758+
<span
759+
onClick={() => {
760+
G.RemoveApplicationByLabel(G.ActiveMoreApp);
761+
G.makingApp = null;
762+
G.SetActiveMoreApp(null);
763+
}}
764+
class="material-symbols-outlined show-on-mobile"
765+
style={{
766+
fontSize: "24px",
767+
margin: "0 0.5rem",
768+
}}
769+
>
770+
close
771+
</span>
758772
<Button
759773
onClick={() => {
760774
setCreateOptions(true);

packages/Playlist/playlist/playlistMode/playlist.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,10 @@ div.attachment-link.dropabble-Embed .playlist-item-type {
14731473
.show-on-desktop {
14741474
display: none !important;
14751475
}
1476+
1477+
.show-on-mobile {
1478+
display: initial !important;
1479+
}
14761480
}
14771481

14781482
/* MOBILE STYLES */

packages/seed-bible/app/components/toolbar.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export function Toolbar() {
4040
} = useSideBarContext();
4141

4242
const [showMoreMenu, setShowMoreMenu] = useState(false);
43-
const [activeMoreApp, setActiveMoreApp] = useState(null);
43+
const [activeMoreApp, setActiveMoreApp] = useState(
44+
globalThis.ActiveMoreApp || null
45+
);
4446
const { setIsDragging, isDragging, setElement } = useMouseMove();
4547
const {
4648
activeSpace,
@@ -50,6 +52,16 @@ export function Toolbar() {
5052
tabs,
5153
} = useTabsContext();
5254

55+
// Get ActiveMoreApp and setActiveMoreApp
56+
useEffect(() => {
57+
globalThis.ActiveMoreApp = activeMoreApp;
58+
globalThis.SetActiveMoreApp = setActiveMoreApp;
59+
return () => {
60+
globalThis.ActiveMoreApp = null;
61+
globalThis.SetActiveMoreApp = null;
62+
};
63+
}, [activeMoreApp]);
64+
5365
// === keep original default-toolbar logic ===
5466
const [showToolbar, setShowToolbar] = useState(false);
5567
globalThis.SetShowToolbar = setShowToolbar;

0 commit comments

Comments
 (0)