From 1d9377da5f5cca468357a6345aa570eea3cc7133 Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 26 May 2022 10:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=8A=A9=E6=89=8B;=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E9=98=85=E8=AF=BB=E6=A0=B7=E5=BC=8F=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/css/index.articles.css | 21 ++++++++++++++------- view/admin/post/edit_content.html | 5 +++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/public/static/css/index.articles.css b/public/static/css/index.articles.css index fc1995c..9e114f9 100644 --- a/public/static/css/index.articles.css +++ b/public/static/css/index.articles.css @@ -122,14 +122,14 @@ } .post-item .info .title { - font-size : 24px; - line-height : 1.3; - margin-bottom : 4px; + font-size : 24px; + line-height : 1.3; + margin-bottom : 4px; /* max-height : 52px; */ - display : -webkit-box; - -webkit-line-clamp: 2; - overflow : hidden; - text-overflow : ellipsis; + display : -webkit-box; + -webkit-line-clamp : 2; + overflow : hidden; + text-overflow : ellipsis; } .post-item .info .desc { @@ -294,6 +294,13 @@ a.post-item:visited { font-size: 13px !important; } +.ul-content code { + background-color: #f5f2f0; + border-radius : 3px; + font-family : monospace; + padding : 3px; +} + .copyright { margin-top : 15px; padding-top: 20px; diff --git a/view/admin/post/edit_content.html b/view/admin/post/edit_content.html index 5d2277d..9923969 100644 --- a/view/admin/post/edit_content.html +++ b/view/admin/post/edit_content.html @@ -163,6 +163,11 @@ type: 'editor' } } + editorConfig.hoverbarKeys = { + text: { + menuKeys: ['headerSelect', 'code', 'insertLink', 'bulletedList', '|', 'bold', 'through', 'color', 'bgColor', 'clearStyle'] + } + } editorConfig.onChange = (editor) => { contentSaveLock = false;