Skip to content

Commit 9b60d0e

Browse files
committed
Fix play icon hover
1 parent 47a1d08 commit 9b60d0e

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

bin/distribute

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,34 @@ if [[ -z $tagname ]]; then
4646
fi
4747

4848
if [[ $# != 1 ]]; then
49-
cat <<EOF
50-
Usage: $0 <new-tagname>
49+
usage
50+
exit 5
51+
fi
5152

52-
$FILES will be patched with the new tagname
53+
export newtag=$(tr ' ' '-' <<<$1) # spaces to dashes
54+
55+
if [[ $(git tag --list) == *$newtag* ]]; then
56+
cat <<EOF
57+
$newtag is already used:
58+
59+
$(git show $newtag)
5360
EOF
54-
exit 5
61+
exit 8
5562
fi
5663

5764
replace_tag_reference_in_file() {
5865
if [[ $# == 2 && -f $2 ]]; then
59-
export newtag=$(tr ' ' '-' <<<$1) # spaces to dashes
60-
sed -i'' "s/$tagname/$newtag/" $2
66+
sed -i'' "s/$tagname/$newtag/" $2
67+
export newtag=$(tr ' ' '-' <<<$1) # spaces to dashes
6168
else
62-
usage "$(basename $0)" $tagname
63-
echo "\nError: $2 file not found\n"
64-
exit 6
69+
echo "\nError: $2 file not found\n"
70+
exit 6
6571
fi
6672
}
6773

6874
for file in "${FILES[@]}"
6975
do
70-
replace_tag_reference_in_file $1 $file
76+
replace_tag_reference_in_file $1 $file
7177
done
7278

7379
git diff

src/components/downloaded/downloaded-file.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ export const DowloadedFile: React.FC<DowloadedFileProps> = (props) => {
2626
const { apiBase } = useApiBase()
2727
const { viewType } = useDownloaded()
2828

29-
const image = () => (
29+
const Image = () => (
3030
<div
31-
className="flex flex-col justify-center items-center relative gap-1 bg-black rounded-t-xl"
31+
className="flex flex-col justify-center items-center relative gap-1 bg-black rounded-t-xl group"
3232
onClick={() => handlePlay(file.name)}>
3333
<div className={`absolute cursor-pointer opacity-10
34-
transition-opacity duration-500 hover:opacity-100
34+
group-hover:opacity-100
35+
transition-opacity duration-500
3536
rounded-full bg-background/30
3637
w-20 h-20 mb-[22px]
3738
flex flex-row items-center justify-center`}>
@@ -97,12 +98,12 @@ export const DowloadedFile: React.FC<DowloadedFileProps> = (props) => {
9798
</LongPressButton>
9899
)
99100

100-
const isGrid = viewType == 'grid'
101-
const isList = viewType == 'list'
101+
const isGrid = viewType == 'grid'
102+
const isList = viewType == 'list'
102103

103104
return (
104105
<div className={isList ? listClasses : gridClasses}>
105-
{isGrid && image()}
106+
{isGrid && <Image />}
106107
<div
107108
className={isList ? listNameClasses : gridNameClasses}>
108109
{file.name}

0 commit comments

Comments
 (0)