Skip to content

Commit 09b6c5b

Browse files
committed
chore: add path to custom css initial comment
1 parent 326bf85 commit 09b6c5b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,11 @@ export const webviewMessageHandler = async (provider: ClineProvider, message: We
980980
} catch (statError) {
981981
if ((statError as NodeJS.ErrnoException)?.code === "ENOENT") {
982982
// File doesn't exist, create it with a comment
983-
await fs.writeFile(customCssPath, `/* ${t("common:custom_css.initial_comment")} */\n`, "utf8")
983+
await fs.writeFile(
984+
customCssPath,
985+
`/* ${t("common:custom_css.initial_comment", { path: customCssDir })} */\n`,
986+
"utf8",
987+
)
984988
provider.log(`Created custom CSS file at: ${customCssPath}`)
985989
} else {
986990
// Other stat error

webview-ui/src/components/settings/InterfaceSettings.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export const InterfaceSettings = ({ onChangeDetected, ...props }: InterfaceSetti
4040
<ExternalLink className="w-4 h-4 mr-1" />
4141
</span>
4242
</VSCodeButton>
43-
{t("settings:interface.cssOverlay.description")}
43+
<div className="text-vscode-descriptionForeground text-sm mt-1">
44+
{t("settings:interface.cssOverlay.description")}
45+
</div>
4446
</fieldset>
4547
</Section>
4648
</div>

0 commit comments

Comments
 (0)