mirror of
https://github.com/louislam/dockge.git
synced 2024-11-23 19:34:04 +00:00
✨ feat: Using monospace fonts in editors (#4)
* ✨ feat: Using monospace fonts in editors
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* Update README
---------
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
This commit is contained in:
parent
9fd0c6416a
commit
ffa978eea1
7 changed files with 17 additions and 4 deletions
|
@ -86,8 +86,8 @@ export const TERMINAL_COLS = 105;
|
|||
export const TERMINAL_ROWS = 10;
|
||||
export const PROGRESS_TERMINAL_ROWS = 8;
|
||||
|
||||
export const COMBINED_TERMINAL_COLS = 56;
|
||||
export const COMBINED_TERMINAL_ROWS = 15;
|
||||
export const COMBINED_TERMINAL_COLS = 58;
|
||||
export const COMBINED_TERMINAL_ROWS = 20;
|
||||
|
||||
export const ERROR_TYPE_VALIDATION = 1;
|
||||
|
||||
|
|
|
@ -77,8 +77,8 @@ export default {
|
|||
}
|
||||
|
||||
this.terminal = new Terminal({
|
||||
fontSize: 16,
|
||||
fontFamily: "monospace",
|
||||
fontSize: 14,
|
||||
fontFamily: "'JetBrains Mono', monospace",
|
||||
cursorBlink,
|
||||
cols: this.cols,
|
||||
rows: this.rows,
|
||||
|
|
|
@ -13,6 +13,7 @@ import Toast, { POSITION, useToast } from "vue-toastification";
|
|||
import "xterm/lib/xterm.js";
|
||||
|
||||
// CSS
|
||||
import "@fontsource/jetbrains-mono";
|
||||
import "vue-toastification/dist/index.css";
|
||||
import "xterm/css/xterm.css";
|
||||
import "./styles/main.scss";
|
||||
|
|
|
@ -592,6 +592,8 @@ export default {
|
|||
}
|
||||
|
||||
.editor-box {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 14px;
|
||||
&.edit-mode {
|
||||
background-color: #2c2f38 !important;
|
||||
}
|
||||
|
|
|
@ -227,5 +227,7 @@ table {
|
|||
.docker-run {
|
||||
background-color: $dark-bg !important;
|
||||
border: none;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 15px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"mark-as-nightly": "tsx ./extra/mark-as-nightly.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/jetbrains-mono": "^5.0.17",
|
||||
"@homebridge/node-pty-prebuilt-multiarch": "~0.11.10",
|
||||
"@louislam/sqlite3": "~15.1.6",
|
||||
"bcryptjs": "~2.4.3",
|
||||
|
|
|
@ -5,6 +5,9 @@ settings:
|
|||
excludeLinksFromLockfile: false
|
||||
|
||||
dependencies:
|
||||
'@fontsource/jetbrains-mono':
|
||||
specifier: ^5.0.17
|
||||
version: 5.0.17
|
||||
'@homebridge/node-pty-prebuilt-multiarch':
|
||||
specifier: ~0.11.10
|
||||
version: 0.11.10
|
||||
|
@ -466,6 +469,10 @@ packages:
|
|||
- vue
|
||||
dev: true
|
||||
|
||||
/@fontsource/jetbrains-mono@5.0.17:
|
||||
resolution: {integrity: sha512-Y/EtdbwKwNQTGpnMrexX8SVW6Jqlh0nX2bNHI9Z9m6FsyjbocZIFNJqwSY9bDUoi7irGtz8nuidAN7FF8wYuJA==}
|
||||
dev: false
|
||||
|
||||
/@fortawesome/fontawesome-common-types@6.4.2:
|
||||
resolution: {integrity: sha512-1DgP7f+XQIJbLFCTX1V2QnxVmpLdKdzzo2k8EmvDOePfchaIGQ9eCHj2up3/jNEbZuBqel5OxiaOJf37TWauRA==}
|
||||
engines: {node: '>=6'}
|
||||
|
|
Loading…
Reference in a new issue