chore: enforce brackets for if clause and for/while loops
This commit is contained in:
@@ -61,7 +61,9 @@ const style = $derived.by(() => {
|
||||
|
||||
// Calculate horizontal constraints based on region
|
||||
const regionStyleStr = $derived(() => {
|
||||
if (region === 'full') return '';
|
||||
if (region === 'full') {
|
||||
return '';
|
||||
}
|
||||
const side = region === 'left' ? 'left' : 'right';
|
||||
return `position: absolute; ${side}: 0; width: ${regionWidth}%; top: 0; bottom: 0;`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user