Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f7d948

Browse files
committed
added error class to the errorElement in base.ts
1 parent0d3d64e commit2f7d948

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎pyscriptjs/src/components/base.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import{componentDetailsNavOpen,loadedEnvironments,mode,pyodideLoaded}from'../stores';
2-
import{guidGenerator}from'../utils';
2+
import{guidGenerator,addClasses}from'../utils';
33
// Premise used to connect to the first available pyodide interpreter
44
letpyodideReadyPromise;
55
letenvironments;
@@ -144,7 +144,10 @@ export class BaseEvalElement extends HTMLElement {
144144
Element=pyodide.globals.get('Element');
145145
}
146146
constout=Element(this.errorElement.id);
147-
out.write.callKwargs(err,{append:true});
147+
148+
addClasses(this.errorElement,['bg-red-200','p-2']);
149+
//@ts-ignore
150+
out.write.callKwargs(err,{append :true});
148151
this.errorElement.hidden=false;
149152
this.errorElement.style.display='block';
150153
}

‎pyscriptjs/src/components/pyrepl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class PyRepl extends BaseEvalElement {
7777
// })
7878
];
7979
constcustomTheme=EditorView.theme({
80-
'.cm-focused .cm-editor, .cm-editor ::selection':{outline:'0px'},
80+
'&.cm-focused .cm-editor':{outline:'0px'},
8181
'.cm-scroller':{lineHeight:2.5},
8282
'.cm-activeLine':{backgroundColor:'#fff'},
8383
'.cm-content':{padding:0,backgroundColor:'#f5f5f5'},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp