@@ -67,15 +67,10 @@ const phrases = getPhrases(locale);
6767 <div class =" background" ></div >
6868 <div class =" metadata" >
6969 <BackgroundCells class =" background-cells" />
70- <Tags data ={ tags } />
71- <h1 >{ title } </h1 >
72- <p class =" description" >
73- { description }
74- </p >
7570 <div class =" actions" >
76- <Share title = { title } shareText = { phrases . general . share } />
71+ <Tags data = { tags } />
7772 <a
78- class =" edit "
73+ class =" button "
7974 href ={ ` https://github.com/logto-io/auth-wiki/edit/master/src/content/${entry .collection }/${entry .slug }.mdx ` }
8075 target =" _blank"
8176 rel =" noopener"
@@ -84,6 +79,11 @@ const phrases = getPhrases(locale);
8479 <span >{ phrases .content .edit_on_github } </span >
8580 </a >
8681 </div >
82+ <h1 >{ title } </h1 >
83+ <p class =" description" >
84+ { description }
85+ </p >
86+ <Share title ={ title } shareText ={ phrases .general .share } />
8787 </div >
8888 </header >
8989 <div class =" content" >
@@ -175,11 +175,16 @@ const phrases = getPhrases(locale);
175175 justify-content: space-between;
176176 flex-wrap: wrap;
177177 column-gap: 32px;
178+ row-gap: 16px;
179+ }
180+ div.actions select.button {
181+ border: none;
182+ border-right: 12px solid transparent;
178183 }
179- div.actions a.edit {
184+ div.actions .button {
180185 display: inline-flex;
181186 align-items: center;
182- gap: 6px ;
187+ gap: 8px ;
183188 text-decoration: none;
184189 border-radius: 8px;
185190 padding: 6px 10px;
@@ -191,10 +196,11 @@ const phrases = getPhrases(locale);
191196 transition: background-color 0.2s ease-in-out;
192197 text-wrap: nowrap;
193198 }
194- div.actions a.edit:hover {
199+ div.actions .button:hover {
200+ cursor: pointer;
195201 background-color: rgba(255, 255, 255, 0.2);
196202 }
197- div.actions a.edit :global(svg) {
203+ div.actions .button :global(svg) {
198204 width: 16px;
199205 height: auto;
200206 }
@@ -385,7 +391,7 @@ const phrases = getPhrases(locale);
385391 div.metadata p.description {
386392 color: rgba(255, 255, 255, 0.7);
387393 }
388- div.actions a.edit {
394+ div.actions .button {
389395 color: rgba(255, 255, 255, 0.6);
390396 }
391397 div.content {
0 commit comments