From aef39d88b0a0382d3c17e563c5f0f2f39eabd8f9 Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 22 Aug 2025 14:21:40 -0700 Subject: [PATCH 1/2] remove quicktipsview.scss --- frontend/app/view/quicktipsview/quicktipsview.scss | 8 -------- frontend/app/view/quicktipsview/quicktipsview.tsx | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 frontend/app/view/quicktipsview/quicktipsview.scss diff --git a/frontend/app/view/quicktipsview/quicktipsview.scss b/frontend/app/view/quicktipsview/quicktipsview.scss deleted file mode 100644 index 6b22bbc311..0000000000 --- a/frontend/app/view/quicktipsview/quicktipsview.scss +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2024, Command Line Inc. -// SPDX-License-Identifier: Apache-2.0 - -.quicktips-view { - padding: 10px 5px; - overflow: auto; - width: 100%; -} diff --git a/frontend/app/view/quicktipsview/quicktipsview.tsx b/frontend/app/view/quicktipsview/quicktipsview.tsx index 118c4f17e6..edbf8e02cb 100644 --- a/frontend/app/view/quicktipsview/quicktipsview.tsx +++ b/frontend/app/view/quicktipsview/quicktipsview.tsx @@ -4,7 +4,6 @@ import { QuickTips } from "@/app/element/quicktips"; import { globalStore } from "@/app/store/global"; import { Atom, atom, PrimitiveAtom } from "jotai"; -import "./quicktipsview.scss"; class QuickTipsViewModel implements ViewModel { viewType: string; @@ -27,7 +26,7 @@ class QuickTipsViewModel implements ViewModel { function QuickTipsView({ model }: { model: QuickTipsViewModel }) { return ( -
+
); From 14da32b740161167cfe68c72d30faf319051928f Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 22 Aug 2025 14:27:38 -0700 Subject: [PATCH 2/2] remove some view scss files (convert to tailwind) --- frontend/app/view/codeeditor/codeeditor.scss | 29 ----------------- frontend/app/view/codeeditor/codeeditor.tsx | 5 ++- frontend/app/view/helpview/helpview.scss | 12 ------- frontend/app/view/helpview/helpview.tsx | 3 +- frontend/app/view/sysinfo/sysinfo.scss | 33 -------------------- frontend/app/view/sysinfo/sysinfo.tsx | 7 ++--- frontend/tailwindsetup.css | 16 ++++++++++ 7 files changed, 22 insertions(+), 83 deletions(-) delete mode 100644 frontend/app/view/codeeditor/codeeditor.scss delete mode 100644 frontend/app/view/helpview/helpview.scss delete mode 100644 frontend/app/view/sysinfo/sysinfo.scss diff --git a/frontend/app/view/codeeditor/codeeditor.scss b/frontend/app/view/codeeditor/codeeditor.scss deleted file mode 100644 index c5896e0582..0000000000 --- a/frontend/app/view/codeeditor/codeeditor.scss +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2024, Command Line Inc. -// SPDX-License-Identifier: Apache-2.0 - -.code-editor-wrapper { - display: flex; - flex-direction: column; - width: 100%; - height: 100%; - overflow: hidden; - align-items: center; - justify-content: center; - - .code-editor { - display: flex; - flex-direction: column; - height: 100%; - width: 100%; - - .monaco-editor .slider { - background: rgba(255, 255, 255, 0.4); - border-radius: 4px; - transition: background 0.2s ease; - - &:hover { - background: rgba(255, 255, 255, 0.6); - } - } - } -} diff --git a/frontend/app/view/codeeditor/codeeditor.tsx b/frontend/app/view/codeeditor/codeeditor.tsx index 53254fcdac..d351aa9bcf 100644 --- a/frontend/app/view/codeeditor/codeeditor.tsx +++ b/frontend/app/view/codeeditor/codeeditor.tsx @@ -19,7 +19,6 @@ import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker" import { SchemaEndpoints, getSchemaEndpointInfo } from "./schemaendpoints"; import ymlWorker from "./yamlworker?worker"; -import "./codeeditor.scss"; // there is a global monaco variable (TODO get the correct TS type) declare var monaco: Monaco; @@ -178,8 +177,8 @@ export function CodeEditor({ blockId, text, language, filename, fileinfo, meta, }, [minimapEnabled, stickyScrollEnabled, wordWrap, fontSize, fileinfo.readonly]); return ( -
-
+
+
) { [homepageUrl] ); return ( -
+
); diff --git a/frontend/app/view/sysinfo/sysinfo.scss b/frontend/app/view/sysinfo/sysinfo.scss deleted file mode 100644 index cfa5c1f109..0000000000 --- a/frontend/app/view/sysinfo/sysinfo.scss +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2024, Command Line Inc. -// SPDX-License-Identifier: Apache-2.0 - -.sysinfo-view { - flex-flow: column nowrap; - flex-grow: 1; - margin-bottom: 0; - overflow-y: auto; - .sysinfo-inner { - width: 100%; - height: 100%; - display: grid; - grid-template-rows: repeat(auto-fit, minmax(100px, 1fr)); - gap: 10px; - - &.two-columns { - grid-template-columns: 1fr 1fr; - } - - .sysinfo-plot-content { - min-height: 100px; - svg { - [aria-label="tip"] { - g { - path { - color: var(--border-color); - } - } - } - } - } - } -} diff --git a/frontend/app/view/sysinfo/sysinfo.tsx b/frontend/app/view/sysinfo/sysinfo.tsx index dc26528498..4cfd8bb792 100644 --- a/frontend/app/view/sysinfo/sysinfo.tsx +++ b/frontend/app/view/sysinfo/sysinfo.tsx @@ -16,7 +16,6 @@ import { RpcApi } from "@/app/store/wshclientapi"; import { TabRpcClient } from "@/app/store/wshrpcutil"; import { atoms } from "@/store/global"; import { OverlayScrollbarsComponent, OverlayScrollbarsComponentRef } from "overlayscrollbars-react"; -import "./sysinfo.scss"; const DefaultNumPoints = 120; @@ -513,7 +512,7 @@ function SingleLinePlot({ }; }, [plot, plotWidth, plotHeight]); - return
; + return
; } const SysinfoViewInner = React.memo(({ model }: SysinfoViewProps) => { @@ -534,10 +533,10 @@ const SysinfoViewInner = React.memo(({ model }: SysinfoViewProps) => { return ( -
+
{yvals.map((yval, idx) => { return (