ui: darkmode fixes for spot and highlights
This commit is contained in:
parent
c5555d7343
commit
83ebd01526
4 changed files with 19 additions and 7 deletions
|
|
@ -56,7 +56,7 @@ function ExcludeFilters(props: Props) {
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
<Button type="link" onClick={addPageFilter}>
|
||||
<Button type="link" onClick={addPageFilter} className="!text-black">
|
||||
{t('Add Exclusion')}
|
||||
</Button>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -54,11 +54,22 @@ function ClipPlayerContent(props: Props) {
|
|||
|
||||
if (!playerContext.player) return null;
|
||||
|
||||
const outerHeight = props.isHighlight ? 556 + 39 : 556;
|
||||
const innerHeight = props.isHighlight ? 504 + 39 : 504;
|
||||
return (
|
||||
<div
|
||||
className={cn(styles.playerBlock, 'flex flex-col', 'overflow-x-hidden max-h-[556px] h-[556px]')}
|
||||
className={cn(
|
||||
styles.playerBlock,
|
||||
'flex flex-col',
|
||||
`overflow-x-hidden max-h-[${outerHeight}px] h-[${outerHeight}px]`,
|
||||
)}
|
||||
>
|
||||
<div className={cn(stl.playerBody, 'flex-1 flex flex-col relative max-h-[504px] h-[504px]')}>
|
||||
<div
|
||||
className={cn(
|
||||
stl.playerBody,
|
||||
`flex-1 flex flex-col relative max-h-[${innerHeight}px] h-[${innerHeight}px]`,
|
||||
)}
|
||||
>
|
||||
<div className={cn(stl.playerBody, 'flex flex-1 flex-col relative')}>
|
||||
<div className="relative flex-1 overflow-hidden group">
|
||||
<ClipPlayerOverlay autoplay={props.autoplay} />
|
||||
|
|
|
|||
|
|
@ -148,14 +148,14 @@ function SpotListItem({
|
|||
<div className="absolute left-0 bottom-8 flex relative gap-2 justify-end pe-2 pb-2 ">
|
||||
<Tooltip title={tooltipText} className="capitalize">
|
||||
<div
|
||||
className="bg-black/70 text-white p-1 px-2 text-xs rounded-lg transition-transform transform translate-y-14 group-hover:translate-y-0 "
|
||||
className="bg-gray-dark text-white p-1 px-2 text-xs rounded-lg transition-transform transform translate-y-14 group-hover:translate-y-0 "
|
||||
onClick={copyToClipboard}
|
||||
style={{ cursor: 'pointer' }}
|
||||
>
|
||||
<Link2 size={16} strokeWidth={1} />
|
||||
</div>
|
||||
</Tooltip>
|
||||
<div className="bg-black/70 text-white p-1 px-2 text-xs rounded-lg flex items-center cursor-normal">
|
||||
<div className="bg-gray-dark text-white p-1 px-2 text-xs rounded-lg flex items-center cursor-normal">
|
||||
{spot.duration}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -213,7 +213,7 @@ export function GridItem({
|
|||
return (
|
||||
<div
|
||||
className={`bg-white rounded-lg overflow-hidden shadow-sm border ${
|
||||
isSelected ? 'border-teal/30' : 'border-transparent'
|
||||
isSelected ? 'border-teal/30' : ''
|
||||
} transition flex flex-col items-start hover:border-teal`}
|
||||
>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -64,10 +64,11 @@ const SpotsListHeader = observer(
|
|||
type="text"
|
||||
onClick={onClearSelection}
|
||||
className="mr-2 px-3"
|
||||
size='small'
|
||||
>
|
||||
{t('Clear')}
|
||||
</Button>
|
||||
<Button onClick={onDelete} type="primary" ghost>
|
||||
<Button onClick={onDelete} type="primary" ghost size='small'>
|
||||
{t('Delete')} ({selectedCount})
|
||||
</Button>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue