From f8039fae412e112d1550dba8d99c37615e7d5f43 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 28 Sep 2021 18:25:22 +0800 Subject: [PATCH] fix bug #164 --- templates/repo/home.tmpl | 59 ++++- web_src/js/components/EditTopics.vue | 414 +++++++++++++++++++++++++++++++ web_src/js/index.js | 469 +++++++++++++++++++---------------- 3 files changed, 721 insertions(+), 221 deletions(-) create mode 100644 web_src/js/components/EditTopics.vue diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index b48efd498..b13022883 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -55,6 +55,40 @@ #contributorInfo > a.circular:nth-child(9n+8){ background-color: #bfd0aa; } +.vue_menu { + cursor: auto; + position: absolute; + outline: none; + top: 100%; + margin: 0em; + padding: 0em 0em; + background: #fff; + font-size: 1em; + text-shadow: none; + text-align: left; + /* -webkit-box-shadow: 0px 2px 3px 0px rgb(34 36 38 / 15%); */ + box-shadow: 0px 2px 3px 0px rgba(34, 36, 38, 0.15); + border: 1px solid rgba(34,36,38,0.15); + border-radius: 0.28571429rem; + -webkit-transition: opacity 0.1s ease; + transition: opacity 0.1s ease; + z-index: 11; + will-change: transform, opacity; + width: 100% !important; + + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-animation-duration: 300ms; + animation-duration: 300ms; + -webkit-animation-timing-function: ease; + animation-timing-function: ease; + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} + + + +
{{template "repo/header" .}} @@ -62,7 +96,7 @@ {{template "base/alert" .}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} -