Skip to content

Commit 28df74a

Browse files
committed
Add dynamic file extension in a code link
1 parent de8b1d0 commit 28df74a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/HelperItem/HelperItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const HelperItem: React.FC<THelperItemProps> = ({helper, open: isOpen}) => {
4242
</a>
4343
<a href={`${HelperLinks.RAW}/${helper.file}`} target="_blank" rel="noreferrer">
4444
<svg width="12" height="12"><use xlinkHref="#script" /></svg>
45-
<span>Файл .bas</span>
45+
<span>{`Файл ${helper.file.slice(helper.file.indexOf('.'))}`}</span>
4646
</a>
4747
</div>
4848
</div>

src/components/SearchForm/SearchForm.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
border: none
1919

2020
@media(min-width: $width-mobile)
21-
width: 80%
21+
width: 76%
2222

2323
&__type
2424
display: none
@@ -64,7 +64,7 @@
6464
list-style: none
6565

6666
@media(min-width: $width-mobile)
67-
width: 20%
67+
width: 24%
6868
padding: 10px 20px
6969

7070
& li

0 commit comments

Comments
 (0)