Skip to content

Commit 63a9c52

Browse files
get rid of inline styling
1 parent 3649ff6 commit 63a9c52

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

web/renderer/components/TestResultsForMergeList/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ export default function TestResultsForMergeList({ params }: Props) {
136136
))
137137
) : (
138138
<li className={css.noTests}>
139-
<span>
140-
No test results available. Run tests to see results here.
141-
</span>
139+
<span>Run tests to see results here.</span>
142140
</li>
143141
)}
144142
</ul>

web/renderer/components/pageComponents/DatabasePage/ForTests/NewGroupModal/index.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* NewGroupModal Component Styles */
21
.overlay {
32
@apply fixed inset-0 bg-stone-700 bg-opacity-50 flex items-center justify-center z-50;
43
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* QueryEditor Component Styles */
21
.container {
32
@apply bg-storm-600 rounded-sm border border-storm-500 overflow-hidden p-2;
43
}

web/renderer/components/pageComponents/DatabasePage/ForTests/TestItem/index.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
max-width: 100% !important;
8787
}
8888

89-
/* Test result status styles */
9089
.testResult {
9190
@apply flex items-center gap-1 px-2 py-1 rounded text-sm text-stone-700;
9291
min-width: 80px;

web/renderer/components/pageComponents/DatabasePage/ForTests/TestItem/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default function TestItem({
129129
e.stopPropagation();
130130
onRunTest();
131131
}}
132-
className={`${css.testActionBtn} ${css.runBtn}`}
132+
className={cx(css.testActionBtn, css.runBtn)}
133133
data-tooltip-content="Run test"
134134
>
135135
<FaPlay />
@@ -219,7 +219,6 @@ export default function TestItem({
219219
onChangeString={value => onUpdateTest("assertionValue", value)}
220220
placeholder="Expected result"
221221
className={css.fullWidthFormInput}
222-
style={{ width: "100%" }}
223222
/>
224223
</div>
225224
</div>

web/renderer/components/pageComponents/DatabasePage/ForTests/TestList/index.module.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140
min-width: 100px;
141141
}
142142

143-
/* Create Dropdown Styles */
144143
.createButton {
145144
@apply flex items-center justify-center px-3 py-1.5 text-sm font-semibold bg-sky-600 text-white rounded hover:bg-sky-700 transition-colors duration-200;
146145
min-width: 100px;
@@ -196,7 +195,6 @@
196195
@apply border-sky-400 outline-none;
197196
}
198197

199-
/* Ungrouped Tests Styles */
200198
.ungroupedDivider {
201199
@apply font-semibold text-center w-full my-8 text-base text-storm-500;
202200
}
@@ -216,3 +214,7 @@
216214
.orangeGroup {
217215
@apply text-orange-500;
218216
}
217+
218+
.runAllButton {
219+
@apply bg-green-600 text-white;
220+
}

web/renderer/components/pageComponents/DatabasePage/ForTests/TestList/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ export default function TestList({ params }: Props) {
7979

8080
<div className={css.primaryActions}>
8181
{tests.length > 0 && (
82-
<Button
83-
onClick={handleRunAll}
84-
className="bg-green-600 text-white"
85-
>
82+
<Button onClick={handleRunAll} className={css.runAllButton}>
8683
Run All
8784
</Button>
8885
)}

0 commit comments

Comments
 (0)