improve: css for change order

This commit is contained in:
h z
2024-12-29 19:30:46 +00:00
parent 75d083f11f
commit 2837edef31
3 changed files with 25 additions and 6 deletions

View File

@@ -138,14 +138,14 @@ const PathNode = ({ path, isRoot = false }) => {
style={{marginLeft: "0.5rem"}}
>
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-forward"
style={{height: "1rem", padding: "0.25rem"}}
onClick={() => handleMovePath(path, "forward")}
type="button"
>
</button>
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-backward"
style={{height: "1rem", padding: "0.25rem"}}
onClick={() => handleMovePath(path, "backward")}
type="button"
@@ -177,14 +177,14 @@ const PathNode = ({ path, isRoot = false }) => {
<PermissionGuard rolesRequired={['admin']}>
<div className="control">
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-forward"
style={{ height: "1rem", padding: "0.25rem" }}
onClick={() => handleMoveMarkdown(markdown, "forward")}
type="button"
>
</button>
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-backward"
style={{ height: "1rem", padding: "0.25rem" }}
onClick={() => handleMoveMarkdown(markdown, "backward")}
type="button"