Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
style(editor): resize color swatch and add inset border in ConfigSidebar
Richie McIlroydc857e55849e
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsxindex 0bdf2c84b..aee1def1d 100644--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx@@ -65,7 +65,12 @@ import IconLucideTimer from "~icons/lucide/timer";import IconLucideType from "~icons/lucide/type";import IconLucideWind from "~icons/lucide/wind";import { CaptionsTab } from "./CaptionsTab";-import { hexToRgb, RgbInput, rgbToHex } from "./color-utils";+import {+ getColorPreviewBorderColor,+ hexToRgb,+ RgbInput,+ rgbToHex,+} from "./color-utils";import { type CornerRoundingType, useEditorContext } from "./context";import { GradientEditor } from "./GradientEditor";import { evaluateMask, type MaskKind, type MaskSegment } from "./masks";@@ -2372,8 +2377,11 @@ function HexColorInput(props: {<div class="relative"><buttontype="button"- class="w-10 h-10 rounded-md border border-gray-4 cursor-pointer hover:border-gray-5 transition-colors"- style={{ "background-color": text() }}+ class="size-[2rem] rounded-[0.5rem] cursor-pointer transition-[box-shadow]"+ style={{+ "background-color": text(),+ "box-shadow": `inset 0 0 0 1px ${getColorPreviewBorderColor(text())}`,+ }}onClick={() => colorInput?.click()}/><input