diff --git a/frontend/app/block/block.tsx b/frontend/app/block/block.tsx index 350f984563..81896572f7 100644 --- a/frontend/app/block/block.tsx +++ b/frontend/app/block/block.tsx @@ -27,7 +27,7 @@ import { getWaveObjectAtom, makeORef, useWaveObjectValue } from "@/store/wos"; import { focusedBlockId, getElemAsStr } from "@/util/focusutil"; import { isBlank, useAtomValueSafe } from "@/util/util"; import { HelpViewModel } from "@/view/helpview/helpview"; -import { TermViewModel } from "@/view/term/term"; +import { TermViewModel } from "@/view/term/term-model"; import { WaveAiModel } from "@/view/waveai/waveai"; import { WebViewModel } from "@/view/webview/webview"; import clsx from "clsx"; diff --git a/frontend/app/element/iconbutton.tsx b/frontend/app/element/iconbutton.tsx index 45e5771099..318e2cbbee 100644 --- a/frontend/app/element/iconbutton.tsx +++ b/frontend/app/element/iconbutton.tsx @@ -5,7 +5,7 @@ import { useLongClick } from "@/app/hook/useLongClick"; import { makeIconClass } from "@/util/util"; import clsx from "clsx"; import { atom, useAtom } from "jotai"; -import { forwardRef, memo, useMemo, useRef } from "react"; +import { CSSProperties, forwardRef, memo, useMemo, useRef } from "react"; import "./iconbutton.scss"; type IconButtonProps = { decl: IconButtonDecl; className?: string }; @@ -15,6 +15,10 @@ export const IconButton = memo( const spin = decl.iconSpin ?? false; useLongClick(ref, decl.click, decl.longClick, decl.disabled); const disabled = decl.disabled ?? false; + const styleVal: CSSProperties = {}; + if (decl.iconColor) { + styleVal.color = decl.iconColor; + } return (