Skip to content

Commit

Permalink
fix: modal overlay zindex, fixed #271
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Sep 4, 2024
1 parent feec0b0 commit 7a5000f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/renderer/src/components/feed-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ export function FeedIcon({
finalSrc = src

ImageElement = (
<PlatformIcon url={siteUrl} style={sizeStyle} className="center">
<img className={cn("mr-2", className)} style={sizeStyle} />
<PlatformIcon
url={siteUrl}
style={sizeStyle}
className={cn("center mr-2", className)}
>
<img style={sizeStyle} />
</PlatformIcon>
)
break
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/src/components/ui/modal/stacked/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ const ModalStack = () => {
<ModalInternal
key={item.id}
item={item}
index={index}
isTop={index === topModalIndex}
index={index * 2}
isTop={index === topModalIndex * 2}
/>
))}
{stack.length > 0 &&
(modalSettingOverlay || forceOverlay) &&
!allForceHideOverlay && (
<ModalOverlay
zIndex={MODAL_STACK_Z_INDEX + overlayIndex + 1}
zIndex={MODAL_STACK_Z_INDEX + overlayIndex * 2}
blur={overlayOptions?.blur}
className={overlayOptions?.className}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/modules/ai/ai-daily/daily.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const DailyReportTitle = ({
</div>
<Tooltip>
<TooltipTrigger asChild>
<i className="i-mgc-question-cute-re translate-y-px" />
<i className="i-mgc-question-cute-re translate-y-px text-sm" />
</TooltipTrigger>
<TooltipPortal>
<TooltipContent>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/modules/discover/recommendations-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const RecommendationCard: FC<RecommendationCardProps> = memo(({ data, rou
icon: (
<FeedIcon
className="size-4"
size={16}
siteUrl={`https://${data.url}`}
/>
),
Expand Down

0 comments on commit 7a5000f

Please sign in to comment.