forked from mirror/codesnap.nvim
[Feat] fixed title and give fallback with watermark (#18)
parent
38396ebcdf
commit
d502bf8162
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue