1
0
Fork 0

[Feat] fixed title and give fallback with watermark (#18)

feature/custom-highlight-themes
Mist 2024-02-24 15:56:11 +08:00 committed by GitHub
parent 38396ebcdf
commit d502bf8162
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,7 @@ function App() {
return ( return (
<div className="w-full h-full flex flex-col items-center bg-deep-gray"> <div className="w-full h-full flex flex-col items-center bg-deep-gray">
<p className="rainbow-text text-4xl font-extrabold mt-20"> <p className="rainbow-text text-4xl font-extrabold mt-20">
{config?.watermark ?? WATER_MARK_PLACEHOLDER} CodeSnap.nvim
</p> </p>
<Panel> <Panel>
<ControlBar <ControlBar
@ -76,7 +76,10 @@ function App() {
readyState={readyState} readyState={readyState}
/> />
<div id="frame" className="rounded-xl overflow-hidden"> <div id="frame" className="rounded-xl overflow-hidden">
<Frame ref={frameRef} watermark={config?.watermark}> <Frame
ref={frameRef}
watermark={config?.watermark ?? WATER_MARK_PLACEHOLDER}
>
<Editor <Editor
language={event?.code?.language} language={event?.code?.language}
macStyleTitleBar={config?.mac_window_bar} macStyleTitleBar={config?.mac_window_bar}