Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
adjust spinner size
Browse files Browse the repository at this point in the history
Signed-off-by: Kerry Archibald <kerrya@element.io>
  • Loading branch information
Kerry Archibald committed Apr 11, 2022
1 parent 8ed2634 commit 608dc41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions res/css/components/views/messages/_MBeaconBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ limitations under the License.
}

.mx_MBeaconBody_mapFallback {
background: url('$(res)/img/location/map.svg');
background-size: cover;

box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;

// pushes spinner/icon up
// to appear more centered with the footer
padding-bottom: 50px;

background: url('$(res)/img/location/map.svg');
background-size: cover;
}

.mx_MBeaconBody_mapFallbackIcon {
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/messages/MBeaconBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const MBeaconBody: React.FC<IBodyProps> = React.forwardRef(({ mxEvent, ...rest }
</Map>
: <div className='mx_MBeaconBody_map mx_MBeaconBody_mapFallback'>
{ displayStatus === BeaconDisplayStatus.Loading ?
<Spinner h={45} w={45} /> :
<Spinner h={32} w={32} /> :
<LocationMarkerIcon className='mx_MBeaconBody_mapFallbackIcon' />
}
</div>
Expand Down

0 comments on commit 608dc41

Please sign in to comment.