When the desktop app is running, the profile dropdown should not be w… (#575)

…hite.

Co-authored-by: Michael Chung <michaelchung@michaels-mbp-2.home>
This commit is contained in:
ArEnScandMichael Chung authored and GitHub committed 2025-05-01 22:32:55 -04:00
1 parent f96e79ff49
commit 93eb78da91
3 files changed
+11 -12

No files matched your search

@@ -28,11 +28,11 @@ import { getCanvasRenderBitmap } from "~/signal/canvasRenderBitmap";
import { EncodeImageBitmapToBase64 } from "~/utilities/EncodeImageBitmapToBase64";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { PopoverItem } from "~/components/reusable/Popover";
import { Api } from "~/KonvaApp/Api";
import { useJobContext } from "~/components/JobContext";
import { IsDesktopApp } from "@storyteller/tauri-utils";
import { GalleryItem, GalleryModal } from "@storyteller/ui-gallery-modal";
import { PromptsApi } from "@storyteller/api";
interface ReferenceImage {
id: string;
url: string;
@@ -215,7 +215,7 @@ export const PromptBox = () => {
};
const handleTauriEnqueue = async () => {
const api = new Api();
const api = new PromptsApi();
let image = getCanvasRenderBitmap();
if (image === undefined) {
return;
@@ -261,7 +261,7 @@ export const PromptBox = () => {
};
const handleWebEnqueue = async () => {
const api = new Api();
const api = new PromptsApi();
let image = getCanvasRenderBitmap();
if (image === undefined) {
toast.error(
@@ -1,4 +1,5 @@
import { twMerge } from "tailwind-merge";
import { Fragment } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faChevronDown,
@@ -65,18 +66,18 @@ export function ProfileDropdown() {
)}
>
<MenuItem
as="a"
as="button"
href={profileUrl}
target="_blank"
rel="noreferrer"
className={twMerge(
"flex w-full items-center gap-3 rounded-lg px-3 py-2",
"text-md font-medium text-gray-700 hover:bg-gray-100",
"text-md font-medium text-white hover:bg-gray-100 hover:text-gray-700",
"transition-colors duration-150",
)}
>
<FontAwesomeIcon icon={faUser} className="w-4 text-gray-700" />
<span className="text-gray-700">My Profile</span>
<FontAwesomeIcon icon={faUser} className="w-4" />
My Profile
</MenuItem>
{menuOptions.map((option, index) => (
@@ -85,7 +86,7 @@ export function ProfileDropdown() {
as="button"
className={twMerge(
"flex w-full items-center gap-3 rounded-lg px-3 py-2",
"text-md font-medium text-gray-700 hover:bg-gray-100",
"text-md font-medium text-white hover:bg-gray-100 hover:text-gray-700",
"transition-colors duration-150",
)}
onClick={(e) => {
@@ -94,7 +95,7 @@ export function ProfileDropdown() {
option.onClick();
}}
>
<FontAwesomeIcon icon={option.icon} className="w-4 text-gray-700" />
<FontAwesomeIcon icon={option.icon} className="w-4" />
<span>{option.label}</span>
</MenuItem>
))}
-2
View File
@@ -2,5 +2,3 @@
set -euxo pipefail
# calls these
./script/desktop/launch_rust_only_3d_for_michael.sh
echo "All scripts completed!"