Skip to content

Commit

Permalink
center icon better
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 Mar 3, 2022
1 parent 9f9400d commit d873ad8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions res/css/views/messages/_MLocationBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ limitations under the License.

.mx_MLocationBody_markerContents {
background-color: $location-marker-color;
margin: 4px;
width: 24px;
height: 24px;
padding-top: 8px;
margin: 0;
width: 31px;
height: 31px;
mask-repeat: no-repeat;
mask-size: 16px;
mask-position: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/messages/MLocationBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class MLocationBody extends React.Component<IBodyProps, IState> {
export function isSelfLocation(locationContent: ILocationContent): boolean {
const asset = ASSET_NODE_TYPE.findIn(locationContent) as { type: string };
const assetType = asset?.type ?? LocationAssetType.Self;
return assetType == LocationAssetType.Self;
return false && assetType == LocationAssetType.Self;

This comment was marked as resolved.

Copy link
@t3chguy

t3chguy Mar 3, 2022

Member

^ what is this contradiction doing here?

}

interface ILocationBodyContentProps {
Expand Down

0 comments on commit d873ad8

Please sign in to comment.