Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroHryshyn committed Jan 3, 2024
1 parent 78a9e34 commit a131052
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions intuita-webview/src/main/CodemodRuns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ export const CodemodRuns = (
<ResizablePanel
collapsible
minSize={0}
defaultSize={props.resultsCollapsed ? props.panelGroupSettings['0,0']?.[0] ?? 50 : 0}
defaultSize={
props.resultsCollapsed
? props.panelGroupSettings['0,0']?.[0] ?? 50
: 0
}
style={{
overflowY: 'auto',
overflowX: 'hidden',
Expand Down Expand Up @@ -127,7 +131,11 @@ export const CodemodRuns = (
<ResizablePanel
collapsible
minSize={0}
defaultSize={props.changeExplorerCollapsed ? 0 : props.panelGroupSettings['0,0']?.[1] ?? 50}
defaultSize={
props.changeExplorerCollapsed
? 0
: props.panelGroupSettings['0,0']?.[1] ?? 50
}
style={{
overflowY: 'auto',
overflowX: 'hidden',
Expand Down
2 changes: 1 addition & 1 deletion src/components/webview/MainProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export class MainViewProvider implements WebviewViewProvider {
actions.setCodemodSearchPhrase(message.searchPhrase),
);
}

if (message.kind === 'webview.global.collapseResultsPanel') {
this.__store.dispatch(
actions.collapseResultsPanel(message.collapsed),
Expand Down
2 changes: 1 addition & 1 deletion src/data/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const rootSlice = createSlice({
// if we persist collapsed state (e.g [0, 100]), last noticed panel sizes (user's resizing) will be lost when panel is unmounted
// so we want to persist only users resizing
// collapsed state is already handled by boolean flags resultsCollapsed, changeExplorerCollapsed
if(validation.right['0,0']?.some(size => size === 0)) {
if (validation.right['0,0']?.some((size) => size === 0)) {
return;
}

Expand Down

0 comments on commit a131052

Please sign in to comment.