mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: resolve CI lint and test failures
- Apply biome formatting fixes to web app components - Add required S3 credentials to loadEnv test when STORAGE_MODE=s3 - Update bento-grid test tool counts from 52 to 53 for html-to-image
This commit is contained in:
@@ -153,7 +153,9 @@ export function FileLibraryModal({ open, onClose, onImport }: FileLibraryModalPr
|
||||
{/* Header */}
|
||||
<div className="flex items-center gap-3 px-4 py-3 border-b border-border shrink-0">
|
||||
<FolderOpen className="h-5 w-5 text-primary" />
|
||||
<h2 className="text-sm font-semibold text-foreground flex-1">{t.automate.importFromLibrary}</h2>
|
||||
<h2 className="text-sm font-semibold text-foreground flex-1">
|
||||
{t.automate.importFromLibrary}
|
||||
</h2>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onClose}
|
||||
|
||||
@@ -55,7 +55,16 @@ function NumericInput({
|
||||
}
|
||||
|
||||
export function TransformOptions({ api }: { api: TransformToolApi }) {
|
||||
const { values, lockedAspect, setLockedAspect, setValues, flipHorizontal, flipVertical, applyTransform, cancelTransform } = api;
|
||||
const {
|
||||
values,
|
||||
lockedAspect,
|
||||
setLockedAspect,
|
||||
setValues,
|
||||
flipHorizontal,
|
||||
flipVertical,
|
||||
applyTransform,
|
||||
cancelTransform,
|
||||
} = api;
|
||||
|
||||
return (
|
||||
<div className="flex items-center gap-3">
|
||||
|
||||
@@ -18,8 +18,16 @@ export function useBrushTool() {
|
||||
const stage = e.target.getStage();
|
||||
if (!stage) return;
|
||||
|
||||
const { activeTool, foregroundColor, brushSize, brushOpacity, brushHardness, brushFlow, zoom, panOffset } =
|
||||
useEditorStore.getState();
|
||||
const {
|
||||
activeTool,
|
||||
foregroundColor,
|
||||
brushSize,
|
||||
brushOpacity,
|
||||
brushHardness,
|
||||
brushFlow,
|
||||
zoom,
|
||||
panOffset,
|
||||
} = useEditorStore.getState();
|
||||
|
||||
if (activeTool !== "brush" && activeTool !== "pencil") return;
|
||||
|
||||
@@ -32,8 +40,12 @@ export function useBrushTool() {
|
||||
const { selection } = useEditorStore.getState();
|
||||
if (selection) {
|
||||
const { bounds } = selection;
|
||||
if (x < bounds.x || x > bounds.x + bounds.width ||
|
||||
y < bounds.y || y > bounds.y + bounds.height) {
|
||||
if (
|
||||
x < bounds.x ||
|
||||
x > bounds.x + bounds.width ||
|
||||
y < bounds.y ||
|
||||
y > bounds.y + bounds.height
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -85,8 +97,12 @@ export function useBrushTool() {
|
||||
const { selection } = useEditorStore.getState();
|
||||
if (selection) {
|
||||
const { bounds } = selection;
|
||||
if (x < bounds.x || x > bounds.x + bounds.width ||
|
||||
y < bounds.y || y > bounds.y + bounds.height) {
|
||||
if (
|
||||
x < bounds.x ||
|
||||
x > bounds.x + bounds.width ||
|
||||
y < bounds.y ||
|
||||
y > bounds.y + bounds.height
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user