mirror of https://github.com/coder/code-server.git
Fix some styling issues
This commit is contained in:
parent
8c21abd2f9
commit
b1cd5c142f
|
@ -694,10 +694,7 @@ class Stats implements fs.Stats {
|
||||||
this.birthtime = new Date(stats.birthtime);
|
this.birthtime = new Date(stats.birthtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
public get dev(): number {
|
public get dev(): number { return this.stats.dev; }
|
||||||
return this.stats.dev;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get ino(): number { return this.stats.ino; }
|
public get ino(): number { return this.stats.ino; }
|
||||||
public get mode(): number { return this.stats.mode; }
|
public get mode(): number { return this.stats.mode; }
|
||||||
public get nlink(): number { return this.stats.nlink; }
|
public get nlink(): number { return this.stats.nlink; }
|
||||||
|
@ -711,34 +708,13 @@ class Stats implements fs.Stats {
|
||||||
public get mtimeMs(): number { return this.stats.mtimeMs; }
|
public get mtimeMs(): number { return this.stats.mtimeMs; }
|
||||||
public get ctimeMs(): number { return this.stats.ctimeMs; }
|
public get ctimeMs(): number { return this.stats.ctimeMs; }
|
||||||
public get birthtimeMs(): number { return this.stats.birthtimeMs; }
|
public get birthtimeMs(): number { return this.stats.birthtimeMs; }
|
||||||
|
public isFile(): boolean { return this.stats._isFile; }
|
||||||
public isFile(): boolean {
|
public isDirectory(): boolean { return this.stats._isDirectory; }
|
||||||
return this.stats._isFile;
|
public isBlockDevice(): boolean { return this.stats._isBlockDevice; }
|
||||||
}
|
public isCharacterDevice(): boolean { return this.stats._isCharacterDevice; }
|
||||||
|
public isSymbolicLink(): boolean { return this.stats._isSymbolicLink; }
|
||||||
public isDirectory(): boolean {
|
public isFIFO(): boolean { return this.stats._isFIFO; }
|
||||||
return this.stats._isDirectory;
|
public isSocket(): boolean { return this.stats._isSocket; }
|
||||||
}
|
|
||||||
|
|
||||||
public isBlockDevice(): boolean {
|
|
||||||
return this.stats._isBlockDevice;
|
|
||||||
}
|
|
||||||
|
|
||||||
public isCharacterDevice(): boolean {
|
|
||||||
return this.stats._isCharacterDevice;
|
|
||||||
}
|
|
||||||
|
|
||||||
public isSymbolicLink(): boolean {
|
|
||||||
return this.stats._isSymbolicLink;
|
|
||||||
}
|
|
||||||
|
|
||||||
public isFIFO(): boolean {
|
|
||||||
return this.stats._isFIFO;
|
|
||||||
}
|
|
||||||
|
|
||||||
public isSocket(): boolean {
|
|
||||||
return this.stats._isSocket;
|
|
||||||
}
|
|
||||||
|
|
||||||
public toObject(): object {
|
public toObject(): object {
|
||||||
return JSON.parse(JSON.stringify(this));
|
return JSON.parse(JSON.stringify(this));
|
||||||
|
|
|
@ -5,6 +5,20 @@
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.monaco-icon-label > .monaco-icon-label-description-container {
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.monaco-icon-label > .decorations-wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
padding-right: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.monaco-icon-label::after {
|
||||||
|
margin-left: initial;
|
||||||
|
}
|
||||||
|
|
||||||
// Using @supports to keep the Firefox fixes completely separate from vscode's
|
// Using @supports to keep the Firefox fixes completely separate from vscode's
|
||||||
// CSS that is tailored for Chrome.
|
// CSS that is tailored for Chrome.
|
||||||
@supports (-moz-appearance:none) {
|
@supports (-moz-appearance:none) {
|
||||||
|
@ -13,4 +27,17 @@
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.monaco-shell .screen-reader-detected-explanation .buttons a,
|
||||||
|
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-shrink,
|
||||||
|
.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-button {
|
||||||
|
max-width: -moz-fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.sizing-fit,
|
||||||
|
.explorer-viewlet .panel-header .count,
|
||||||
|
.extensions-viewlet > .extensions .extension > .details > .header-container > .header > .version,
|
||||||
|
.debug-viewlet .debug-call-stack .stack-frame .label {
|
||||||
|
min-width: -moz-fit-content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ module.exports = (options = {}) => ({
|
||||||
loader: "ignore-loader",
|
loader: "ignore-loader",
|
||||||
}],
|
}],
|
||||||
}, {
|
}, {
|
||||||
test: /electron-browser.+\.html$/,
|
test: /electron-browser.+\.html$|code\/electron-browser\/.+\.css/,
|
||||||
use: [{
|
use: [{
|
||||||
loader: "ignore-loader",
|
loader: "ignore-loader",
|
||||||
}],
|
}],
|
||||||
|
@ -35,7 +35,9 @@ module.exports = (options = {}) => ({
|
||||||
}],
|
}],
|
||||||
test: /(^.?|\.[^d]|[^.]d|[^.][^d])\.tsx?$/,
|
test: /(^.?|\.[^d]|[^.]d|[^.][^d])\.tsx?$/,
|
||||||
}, {
|
}, {
|
||||||
exclude: /test/,
|
// The CSS in code/electron-browser is supposed to be served in separate
|
||||||
|
// pages so including it interferes with styles in vscode.
|
||||||
|
exclude: /test|code\/electron-browser\/.+\.css/,
|
||||||
test: /\.s?css$/,
|
test: /\.s?css$/,
|
||||||
// This is required otherwise it'll fail to resolve CSS in common.
|
// This is required otherwise it'll fail to resolve CSS in common.
|
||||||
include: root,
|
include: root,
|
||||||
|
|
Loading…
Reference in New Issue