Merge pull request #541 from PretzelVector/indent_collapsed_settings

[cosmetic] indent collapsing settings
This commit is contained in:
Matt Rubens
2025-01-26 00:19:58 -05:00
committed by GitHub

View File

@@ -225,7 +225,12 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
Automatically create and edit files without requiring approval Automatically create and edit files without requiring approval
</p> </p>
{alwaysAllowWrite && ( {alwaysAllowWrite && (
<div style={{ marginTop: 10 }}> <div
style={{
marginTop: 10,
paddingLeft: 10,
borderLeft: "2px solid var(--vscode-button-background)",
}}>
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}> <div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
<input <input
type="range" type="range"
@@ -277,7 +282,12 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
Automatically retry failed API requests when server returns an error response Automatically retry failed API requests when server returns an error response
</p> </p>
{alwaysApproveResubmit && ( {alwaysApproveResubmit && (
<div style={{ marginTop: 10 }}> <div
style={{
marginTop: 10,
paddingLeft: 10,
borderLeft: "2px solid var(--vscode-button-background)",
}}>
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}> <div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
<input <input
type="range" type="range"
@@ -329,7 +339,12 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
</p> </p>
{alwaysAllowExecute && ( {alwaysAllowExecute && (
<div style={{ marginTop: 10 }}> <div
style={{
marginTop: 10,
paddingLeft: 10,
borderLeft: "2px solid var(--vscode-button-background)",
}}>
<span style={{ fontWeight: "500" }}>Allowed Auto-Execute Commands</span> <span style={{ fontWeight: "500" }}>Allowed Auto-Execute Commands</span>
<p <p
style={{ style={{
@@ -489,7 +504,12 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
</p> </p>
</div> </div>
{soundEnabled && ( {soundEnabled && (
<div style={{ marginLeft: 0 }}> <div
style={{
marginLeft: 0,
paddingLeft: 10,
borderLeft: "2px solid var(--vscode-button-background)",
}}>
<div style={{ display: "flex", alignItems: "center", gap: "5px" }}> <div style={{ display: "flex", alignItems: "center", gap: "5px" }}>
<span style={{ fontWeight: "500", minWidth: "100px" }}>Volume</span> <span style={{ fontWeight: "500", minWidth: "100px" }}>Volume</span>
<input <input
@@ -565,7 +585,12 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
</p> </p>
{diffEnabled && ( {diffEnabled && (
<div style={{ marginTop: 10 }}> <div
style={{
marginTop: 10,
paddingLeft: 10,
borderLeft: "2px solid var(--vscode-button-background)",
}}>
<div style={{ display: "flex", alignItems: "center", gap: "5px" }}> <div style={{ display: "flex", alignItems: "center", gap: "5px" }}>
<span style={{ color: "var(--vscode-errorForeground)" }}>⚠️</span> <span style={{ color: "var(--vscode-errorForeground)" }}>⚠️</span>
<VSCodeCheckbox <VSCodeCheckbox