mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Font Saga Continues (#1338)
Nuke comic, just use monospace..... make life easy
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
<x-filament::widget>
|
||||
@assets
|
||||
@php
|
||||
$userFont = auth()->user()->getCustomization()['console_font'] ?? 'ComicMono';
|
||||
$userFont = auth()->user()->getCustomization()['console_font'];
|
||||
$userFontSize = auth()->user()->getCustomization()['console_font_size'] ?? 14;
|
||||
$userRows = auth()->user()->getCustomization()['console_rows'] ?? 30;
|
||||
@endphp
|
||||
|
||||
@if ($userFont === 'ComicMono')
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/comic-mono@0.0.1/index.css">
|
||||
@else
|
||||
@if($userFont)
|
||||
<link rel="preload" href="{{ asset("storage/fonts/{$userFont}.ttf") }}" as="font" crossorigin>
|
||||
<style>
|
||||
@font-face {
|
||||
@@ -75,7 +72,7 @@
|
||||
|
||||
let options = {
|
||||
fontSize: {{ $userFontSize }},
|
||||
fontFamily: '{{ $userFont }}',
|
||||
fontFamily: '{{ $userFont }}, monospace',
|
||||
lineHeight: 1.2,
|
||||
disableStdin: true,
|
||||
cursorStyle: 'underline',
|
||||
|
||||
Reference in New Issue
Block a user