Skip to content

Commit d07d817

Browse files
authored
Fix/remove share icon (#631)
1 parent c37d8df commit d07d817

File tree

3 files changed

+5
-30
lines changed

3 files changed

+5
-30
lines changed

docs/backend/backend_python/openapi.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,14 +1117,9 @@
11171117
"in": "query",
11181118
"required": false,
11191119
"schema": {
1120-
"allOf": [
1121-
{
1122-
"$ref": "#/components/schemas/InputType"
1123-
}
1124-
],
1120+
"$ref": "#/components/schemas/InputType",
11251121
"description": "Choose input type: 'path' or 'base64'",
1126-
"default": "path",
1127-
"title": "Input Type"
1122+
"default": "path"
11281123
},
11291124
"description": "Choose input type: 'path' or 'base64'"
11301125
}
@@ -2204,6 +2199,7 @@
22042199
"metadata": {
22052200
"anyOf": [
22062201
{
2202+
"additionalProperties": true,
22072203
"type": "object"
22082204
},
22092205
{

frontend/src/components/Media/ImageCard.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AspectRatio } from '@/components/ui/aspect-ratio';
22
import { Button } from '@/components/ui/button';
33
import { cn } from '@/lib/utils';
4-
import { Check, Heart, Share2 } from 'lucide-react';
4+
import { Check, Heart } from 'lucide-react';
55
import { useCallback, useState } from 'react';
66
import { Image } from '@/types/Media';
77
import { ImageTags } from './ImageTags';
@@ -90,18 +90,6 @@ export function ImageCard({
9090
)}
9191
<span className="sr-only">Favourite</span>
9292
</Button>
93-
94-
<Button
95-
variant="ghost"
96-
size="icon"
97-
className="cursor-pointer rounded-full bg-white/20 text-white hover:!bg-white/40 hover:!text-white"
98-
onClick={(e) => e.stopPropagation()}
99-
title="Share"
100-
aria-label="Share"
101-
>
102-
<Share2 className="h-5 w-5" />
103-
<span className="sr-only">Share</span>
104-
</Button>
10593
</div>
10694
</AspectRatio>
10795

frontend/src/components/Media/MediaViewControls.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Info, Folder, Share2, Heart, Play, Pause, X } from 'lucide-react';
2+
import { Info, Folder, Heart, Play, Pause, X } from 'lucide-react';
33

44
interface MediaViewControlsProps {
55
showInfo: boolean;
@@ -45,15 +45,6 @@ export const MediaViewControls: React.FC<MediaViewControlsProps> = ({
4545
>
4646
<Folder className="h-5 w-5" />
4747
</button>
48-
49-
<button
50-
className="cursor-pointer rounded-full bg-black/50 p-2.5 text-white/90 transition-all duration-200 hover:bg-black/20 hover:text-white hover:shadow-lg"
51-
aria-label="Share"
52-
title="Share"
53-
>
54-
<Share2 className="h-5 w-5" />
55-
</button>
56-
5748
<button
5849
onClick={onToggleFavourite}
5950
className={`cursor-pointer rounded-full p-2.5 text-white transition-all duration-300 ${

0 commit comments

Comments
 (0)