Skip to content

Commit b52c07b

Browse files
committed
updated progress bar style
1 parent 81d840f commit b52c07b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + Vue</title>
7+
<title>Mindmap</title>
88
</head>
99
<body>
1010
<div id="app"></div>

src/components/Tree.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ export default {
400400
blurLastNode(triggerNode) {
401401
tree.blurLastNode(triggerNode);
402402
},
403-
403+
collapseLastNode() {
404+
tree.collapseLastNode();
405+
},
404406
deleteLastNode() {
405407
tree.deleteLastNode();
406408
// this.saveDocument();
@@ -727,19 +729,18 @@ export default {
727729
728730
.progress-wrapper {
729731
position: absolute;
730-
bottom: -20px;
732+
bottom: -11px;
731733
left: 0;
732-
border: 1px solid black;
733-
border-radius: 0.7rem;
734+
border-radius: 0 0 4px 4px;
734735
background-color: black;
735736
width: 100%;
736737
}
737738
738739
.progress {
739740
transition: width 1s ease;
740-
border-radius: 0.7rem;
741+
border-radius: 0 0 4px 4px;
741742
background-color: rgb(44, 189, 44);
742-
height: 0.2rem;
743+
height: 3px;
743744
overflow: hidden;
744745
color: white;
745746
font-size: 0.8rem;

0 commit comments

Comments
 (0)