mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
Use Raw button to navigate to raw file
For toggling Markdown view, we add a button that either shows `Plain` or `Markdown`. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.markdown-toggle {
|
||||
.toggle {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
@@ -228,15 +228,15 @@
|
||||
</span>
|
||||
<div class="right">
|
||||
{#if isMarkdown}
|
||||
<div class="markdown-toggle">
|
||||
<SquareButton
|
||||
active={!showMarkdown}
|
||||
clickable
|
||||
on:click={toggleMarkdown}>
|
||||
Raw
|
||||
<div class="toggle">
|
||||
<SquareButton clickable on:click={toggleMarkdown}>
|
||||
{showMarkdown ? "Plain" : "Markdown"}
|
||||
</SquareButton>
|
||||
</div>
|
||||
{/if}
|
||||
<a href="{rawPath}/{blob.path}" class="toggle">
|
||||
<SquareButton clickable>Raw</SquareButton>
|
||||
</a>
|
||||
<div class="last-commit" title={lastCommit.author.name} use:twemoji>
|
||||
<span class="hash">
|
||||
{lastCommit.id.slice(0, 7)}
|
||||
|
||||
Reference in New Issue
Block a user