Skip to content

Commit 9fb05c3

Browse files
committed
Replace strict equality checks with loose equality and update UI styling for consistency
1 parent daf3a0e commit 9fb05c3

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

‎apps/editor/src/commands/apply-chat-response-command/utils/preview/workspace-listener.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ const update_response_history = (
5656
}
5757
const file_in_history_index = item_to_update.files.findIndex(
5858
(f) =>
59-
f.file_path === updated_file.file_path &&
60-
f.workspace_name === updated_file.workspace_name
59+
f.file_path == updated_file.file_path &&
60+
f.workspace_name == updated_file.workspace_name
6161
)
6262

6363
if (file_in_history_index !== -1) {
@@ -694,8 +694,7 @@ export const setup_workspace_listeners = (
694694
const item_to_update = history.find((i) => i.created_at === created_at)
695695
if (item_to_update && item_to_update.files) {
696696
const file_in_history = item_to_update.files.find(
697-
(f) =>
698-
f.file_path === file_path && f.workspace_name === workspace_name
697+
(f) => f.file_path == file_path && f.workspace_name == workspace_name
699698
)
700699
if (file_in_history) {
701700
file_in_history.is_checked = is_checked

‎packages/ui/src/components/editor/panel/ResponsePreview/components/FileItem/FileItem.module.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149

150150
&--loading {
151151
color: var(--cwc-text-color);
152-
background-color: var(--cwc-bg-tertiary);
152+
background-color: var(--cwc-bg-secondary);
153153

154154
.message__actions__item:hover {
155155
background-color: var(--cwc-bg-secondary);
@@ -167,7 +167,7 @@
167167
> span:first-child {
168168
font-size: 14px !important;
169169
margin-right: 4px;
170-
vertical-align: middle;
170+
vertical-align: sub;
171171
}
172172
}
173173

‎packages/ui/src/components/editor/panel/modals/ApiManagerModal/ApiManagerModal.module.scss‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@
131131
line-height: 1.2;
132132

133133
> span:nth-child(2) {
134-
color: var(--vscode-editorWidget-foreground);
135-
opacity: 0.7;
134+
color: var(--cwc-text-color-dimmed);
136135
margin-left: 0.5em;
137136
font-size: 0.9em;
138137
}
@@ -145,9 +144,8 @@
145144
justify-content: space-between;
146145
padding: 0 12px 0 8px;
147146
height: 18px;
148-
font-size: 11px;
149-
color: var(--vscode-editorWidget-foreground);
150-
opacity: 0.7;
147+
font-size: 0.9em;
148+
color: var(--cwc-text-color-dimmed);
151149

152150
&__status {
153151
overflow: hidden;

0 commit comments

Comments
 (0)