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

Commitded0a02

Browse files
authored
use serverSettings from serviceManager, style tweaks (#10329)
1 parente75096c commitded0a02

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

‎packages/help-extension/src/index.tsx‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ const licenses: JupyterFrontEndPlugin<void> = {
508508
});
509509

510510
/**
511-
* Return a full report format based on a format name
511+
* Return a fulllicensereport format based on a format name
512512
*/
513513
functionformatOrDefault(format:string):Licenses.IReportFormat{
514514
return(
@@ -518,10 +518,15 @@ const licenses: JupyterFrontEndPlugin<void> = {
518518
}
519519

520520
/**
521-
* Create a MainAreaWidget for atoolbar item
521+
* Create a MainAreaWidget for alicense viewer
522522
*/
523523
functioncreateLicenseWidget(args:Licenses.ICreateArgs){
524-
constlicensesModel=newLicenses.Model({ licensesUrl, trans, ...args});
524+
constlicensesModel=newLicenses.Model({
525+
...args,
526+
licensesUrl,
527+
trans,
528+
serverSettings:app.serviceManager.serverSettings
529+
});
525530
constcontent=newLicenses({model:licensesModel});
526531
content.id=`${licensesNamespace}-${++counter}`;
527532
content.title.label=licensesText;

‎packages/help-extension/style/base.css‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,27 @@
141141
flex:1;
142142
}
143143

144+
.jp-Licenses-Bundles .lm-TabBar-content {
145+
width:100%;
146+
}
147+
144148
.jp-Licenses-Bundles .lm-TabBar-tab {
145149
padding:calc(var(--jp-ui-font-size1)/2);
146150
background-color:var(--jp-layout-color1);
147151
color:var(--jp-ui-font-color1);
148152
}
149153

154+
.jp-Licenses-Bundles .lm-TabBar-tabLabel {
155+
text-overflow: ellipsis;
156+
}
157+
150158
.jp-Licenses-Bundles .lm-TabBar-tablabel {
151159
background-color:var(--jp-layout-color2);
152160
border-radius:var(--jp-ui-font-size1);
153161
width:calc(2.5*var(--jp-ui-font-size1));
154162
padding:0calc(var(--jp-ui-font-size1)/2);
155163
text-align: center;
156-
margin-left:var(--jp-ui-font-size1);
164+
margin-left:calc(var(--jp-ui-font-size1)/2);
157165
}
158166

159167
.jp-Licenses-Bundles .lm-TabBar-tab.lm-mod-current {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp