Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7cb8b98

Browse files
author
FalkWolsky
committed
Fixing profile Image Display
1 parent957e8aa commit7cb8b98

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

‎client/packages/lowcoder/src/i18n/locales/de.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,8 @@ export const de: typeof en = {
24332433
"home":{
24342434
...en.home,
24352435
"profile":"Profil",
2436+
"news":"News",
2437+
"newsLoading":"Das Laden dauert ein wenig...",
24362438
"allApplications":"Alle Apps",
24372439
"allModules":"Alle Module",
24382440
"allFolders":"Alle Ordner",

‎client/packages/lowcoder/src/i18n/locales/en.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,6 +2917,7 @@ export const en = {
29172917
"home":{
29182918
"profile":"Your Profile",
29192919
"news":"News",
2920+
"newsLoading":"It will load some seconds.",
29202921
"orgHome" :"Homepage (Org)",
29212922
"yourOrg":"Your Organization",
29222923
"orgHomeTitle":"Organization Homepage",

‎client/packages/lowcoder/src/pages/ApplicationV2/NewsLayout.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export function NewsLayout() {
9393
<h1style={{color:"#ffffff",marginTop :"12px"}}>Lowcoder{trans("home.news")}</h1>
9494
</StyleNewsCover>
9595
<Cardstyle={{marginBottom:"20px",minHeight :"800px"}}>
96+
<h4>{trans("home.newsLoading")}</h4>
9697
<iframe
9798
style={{border:"none"}}
9899
title="Lowcoder News"

‎client/packages/lowcoder/src/pages/ApplicationV2/UserProfileLayout.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import { trans, languageList } from "../../i18n";
1616
import{ALL_APPLICATIONS_URL}from"constants/routesURL";
1717
import{defaultasDivider}from"antd/es/divider";
1818

19+
import{fullAvatarUrl}from"util/urlUtils";
20+
1921
import{Avatar,Button,Card,Col,Row,Space,Typography,Select,Tooltip}from"antd";
2022

2123
import{
@@ -231,7 +233,7 @@ export function UserProfileLayout(props: UserProfileLayoutProps) {
231233
<StyleProfileContent>
232234
<Rowgutter={[24,24]}style={{display:'flex',alignItems:'end'}}>
233235
<Collg={4}>
234-
<StyleAvatarsrc={<imgsrc={user.avatarUrl??`https://eu.ui-avatars.com/api/?name=${user.username}&size=250`}alt="avatar"/>}shape="square"size={120}/>
236+
<StyleAvatarsrc={<imgsrc={user.avatarUrl ?fullAvatarUrl(user.avatarUrl) :`https://eu.ui-avatars.com/api/?name=${user.username}&size=250`}alt="avatar"/>}shape="square"size={120}/>
235237
</Col>
236238
<Collg={20}>
237239
<Spacestyle={{paddingLeft :"80px"}}>

‎client/packages/lowcoder/src/pages/ApplicationV2/index.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ export default function ApplicationHome() {
365365
routeComp:NewsView,
366366
icon:({ selected, ...otherProps})=>selected ?<NewsIcon{...otherProps}width={"24px"}/> :<NewsIcon{...otherProps}width={"24px"}/>,
367367
visible:({ user})=>user.orgDev,
368+
style:{color:"red"},
368369
},
369370
{
370371
text:<TabLabel>{trans("home.orgHome")}</TabLabel>,

‎client/packages/lowcoder/src/pages/userAuth/authComponents.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import styled from "styled-components";
66
importReactHotkeysfrom"util/hotkeys";
77
import{StyledLink}from"pages/common/styledComponent";
88
import{trans}from"i18n";
9+
import{fullAvatarUrl}from"util/urlUtils";
910

1011
constAuthCardContainer=styled.div`
1112
display: flex;
@@ -152,7 +153,7 @@ export const AuthContainer = (props: {
152153
<AuthCard>{props.children}</AuthCard>
153154
{props.subHeading&&(
154155
<AuthCardSubFooter>
155-
<imgsrc="/src/assets/images/Lowcoder-Logo.svg"alt={"Lowcoder | "+trans("productDesc")}width="20px"/>
156+
<imgsrc={fullAvatarUrl("/src/assets/images/Lowcoder-Logo.svg")}alt={"Lowcoder | "+trans("productDesc")}width="20px"/>
156157
<ahref="https://lowcoder.cloud"target="_blank"rel="noreferrer">
157158
{props.subHeading}
158159
</a>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp