Skip to content

Commit

Permalink
fix(build): bump
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Dec 15, 2024
1 parent a4ec150 commit b00e328
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1671,9 +1671,12 @@ export class KitPrompt {
this.saveCurrentPromptBounds();
}

private calculateTargetDimensions(resizeData: ResizeData, currentBounds: Electron.Rectangle): Pick<Rectangle, > {
private calculateTargetDimensions(
resizeData: ResizeData,
currentBounds: Electron.Rectangle,
): Pick<Rectangle, 'width' | 'height'> {
const {
Rectangle topHeight,
topHeight,
mainHeight,
footerHeight,
ui,
Expand All @@ -1686,8 +1689,8 @@ Rectangle topHeight,
} = resizeData;

// Get cached dimensions for main script
const getCachedDimensions = (): Partial<Pick<Rectangle, >> => {
if (!Rectanglet) return {};
const getCachedDimensions = (): Partial<Pick<Rectangle, 'width' | 'height'>> => {
if (!isMainScript) return {};

const cachedBounds = getCurrentScreenPromptCache(getMainScriptPath());
return {
Expand Down

0 comments on commit b00e328

Please sign in to comment.