Skip to content

Commit

Permalink
Merge pull request #388 from kevinlin98z/users/kevinlin/loading-pane-…
Browse files Browse the repository at this point in the history
…icon-bug

Fix loading pane icon image fit
  • Loading branch information
kevinlin98z authored Nov 3, 2023
2 parents d29da65 + 4fbf654 commit 330480a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGE_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Fixed

- Fixed loading pane icon image fit

## [1.0.9] 2023-10-31

### Changed
Expand Down
4 changes: 2 additions & 2 deletions chat-components/src/components/loadingpane/LoadingPane.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IIconStyles, ILabelStyles, ISpinnerStyles, IStackStyles, Icon, Label, Spinner, Stack } from "@fluentui/react";
import { IIconStyles, IImageProps, ILabelStyles, ISpinnerStyles, IStackStyles, Icon, Label, Spinner, Stack } from "@fluentui/react";

import { ILoadingPaneProps } from "./interfaces/ILoadingPaneProps";
import React from "react";
Expand All @@ -24,7 +24,7 @@ function LoadingPane(props: ILoadingPaneProps) {
root: Object.assign({}, defaultLoadingPaneIconStyles, props.styleProps?.iconStyleProps)
};

const iconImageProps = props.styleProps?.iconImageProps ?? defaultLoadingPaneIconImageProps;
const iconImageProps: IImageProps = Object.assign({}, defaultLoadingPaneIconImageProps, props.styleProps?.iconImageProps);

const titleStyles: ILabelStyles = {
root: Object.assign({}, defaultLoadingPaneTitleStyles, props.styleProps?.titleStyleProps)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ModernChatIconBase64 } from "../../../../../assets/Icons";

export const defaultLoadingPaneIconImageProps: IImageProps = {
src: ModernChatIconBase64,
imageFit: ImageFit.center,
imageFit: ImageFit.centerContain,
width: "86px",
height: "86px",
shouldFadeIn: false,
Expand Down

0 comments on commit 330480a

Please sign in to comment.