Skip to content

Commit aa2e877

Browse files
committed
Making timing and open script div to sticky, so that it will be visiable always when UI scroll
Correcting commad in case of Scalar value
1 parent a6d043e commit aa2e877

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

script-gen-ui/src/app/components/main-sweep/main-sweep.component.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,14 @@
241241
display: flex;
242242
justify-content: space-between;
243243
color: var(--vscode-editor-foreground);
244-
// border: 1px solid var(--vscode-editorWidget-border);
245244
border-radius: 10px;
246-
padding-left: 1px;
247-
padding-right: 1px;
248-
padding-top: 7px;
245+
padding: 7px 10px;
246+
background-color: var(--vscode-editor-background);
247+
position: sticky;
248+
top: 0;
249+
z-index: 100;
250+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
251+
margin-bottom: 10px;
249252
}
250253

251254
.timing {

xml-handler/src/resources/sweep/MP5000Sweep.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
self.channel.source.levelv = self.source.values.scalar
327327
elseif self.source.func == CONSTANTS.FUNC_DC_CURRENT then
328328
self.channel.source.func = self.slot.smu.FUNC_DC_CURRENT
329-
self.channel.trigger.source.leveli = self.source.values.scalar
329+
self.channel.source.leveli = self.source.values.scalar
330330
end
331331
elseif self.source.values.list ~= nil then
332332
if self.source.func == CONSTANTS.FUNC_DC_VOLTAGE then

0 commit comments

Comments
 (0)