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;