Skip to content

Commit 60b715c

Browse files
committed
polish: snippets descripton border
1 parent 25b4494 commit 60b715c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/renderer/components/snippets/SnippetsDescription.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,26 @@ watch(
5858
padding: 0 var(--spacing-xs);
5959
font-size: 12px;
6060
color: var(--color-text);
61-
border-bottom: 1px solid var(--color-border);
61+
position: relative;
6262
:empty::before {
6363
content: attr(placeholder);
6464
position: absolute;
6565
color: var(--color-text-3);
6666
background-color: transparent;
6767
}
68+
&::after {
69+
content: '';
70+
position: absolute;
71+
width: 100%;
72+
height: 1px;
73+
background-color: var(--color-border);
74+
left: 0;
75+
bottom: -1px;
76+
}
6877
&.no-border-bottom {
69-
border-bottom: none;
78+
&::after {
79+
content: none;
80+
}
7081
}
7182
.input {
7283
width: 100%;

0 commit comments

Comments
 (0)