You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2021/11/09 09:34:51 UTC

[incubator-doris] branch master updated: [Bug] Fix docs website home page last news icon loading failure (#7057)

This is an automated email from the ASF dual-hosted git repository.

jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 906c305  [Bug] Fix docs website home page last news icon loading failure (#7057)
906c305 is described below

commit 906c305a190d53cd279c25c3e436f66c8c88c902
Author: wangyongfeng <94...@qq.com>
AuthorDate: Tue Nov 9 17:34:42 2021 +0800

    [Bug] Fix docs website home page last news icon loading failure (#7057)
    
    * Fix last news icon loading failure
    
    Co-authored-by: 943155336 <wangyongfeng>
    Co-authored-by: jiafeng.zhang <zh...@gmail.com>
---
 docs/.vuepress/theme/components/Home.vue | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/docs/.vuepress/theme/components/Home.vue b/docs/.vuepress/theme/components/Home.vue
index e2a90a8..2c0ba6a 100644
--- a/docs/.vuepress/theme/components/Home.vue
+++ b/docs/.vuepress/theme/components/Home.vue
@@ -54,10 +54,13 @@ under the License.
               class="action-button"
               :item="actionLink"
             />
-            <NavLink
-              class="action-button article-button"
-              :item="articleLink"
-            />
+            <span class="link-wrap">
+              <NavLink
+                class="action-button article-button"
+                :item="articleLink"
+              />
+              <img class="link-icon" :src="$withBase('/images/home/new.svg')" alt="last news">
+            </span>
           </p>
         </div>
         <div
@@ -254,19 +257,17 @@ export default {
           &:hover
             color #5A77F3
             background-color white
-        .article-button 
+        .link-wrap
+          display inline-block
           margin-left 10px
           position relative
-          &:after
-            content ''
+          .link-icon
             display block
             width 30px
             height 30px
             position absolute
             right 6px
             top 0px
-            background: url('/images/home/new.svg') no-repeat center
-            background-size: contain
           &:before
             content ''
             display block

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org