fix(fe): text overflows when it is too long
This commit is contained in:
parent
69b9b3d5fa
commit
49f42e937f
3 changed files with 51 additions and 47 deletions
|
@ -230,9 +230,27 @@
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.theme-default #upload-list .info {
|
||||||
|
display: inline-block;
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-default #upload-list .op {
|
||||||
|
display: inline-block;
|
||||||
|
width: 30%;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-default #upload-list .title {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
line-height: 4rem;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
.theme-default #upload-list .desc {
|
.theme-default #upload-list .desc {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
line-height: 2rem;
|
line-height: 4rem;
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-default #upload-list .progress-grey {
|
.theme-default #upload-list .progress-grey {
|
||||||
|
@ -258,6 +276,18 @@
|
||||||
background-color: #2c3e50;
|
background-color: #2c3e50;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.theme-default #sharing-list .info {
|
||||||
|
display: inline-block;
|
||||||
|
width: 70%;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-default #sharing-list .op {
|
||||||
|
display: inline-block;
|
||||||
|
width: 30%;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
.theme-default #sharing-list .desc {
|
.theme-default #sharing-list .desc {
|
||||||
background-color: #ecf0f1;
|
background-color: #ecf0f1;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
|
@ -265,6 +295,7 @@
|
||||||
color: #697384;
|
color: #697384;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
border: dashed 1px #95a5a6;
|
border: dashed 1px #95a5a6;
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-default .sharing-item {
|
.theme-default .sharing-item {
|
||||||
|
|
|
@ -64,32 +64,19 @@ export class SharingsPanel extends React.Component<Props, State, {}> {
|
||||||
}?dir=${encodeURIComponent(dirPath)}`;
|
}?dir=${encodeURIComponent(dirPath)}`;
|
||||||
|
|
||||||
const row1 = (
|
const row1 = (
|
||||||
<Flexbox
|
<div>
|
||||||
children={List([
|
<div className="info">{dirPath}</div>
|
||||||
<RiFolderSharedFill
|
|
||||||
size="3rem"
|
|
||||||
className="purple0-font margin-r-m"
|
|
||||||
/>,
|
|
||||||
<span>{dirPath}</span>,
|
|
||||||
|
|
||||||
|
<div className="op">
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
this.deleteSharing(dirPath);
|
this.deleteSharing(dirPath);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{this.props.msg.pkg.get("browser.delete")}
|
{this.props.msg.pkg.get("browser.delete")}
|
||||||
</button>,
|
</button>
|
||||||
])}
|
</div>
|
||||||
childrenStyles={List([
|
</div>
|
||||||
{ flex: "0 0 auto", alignItems: "center" },
|
|
||||||
{ alignItems: "center", justifyContent: "flex-start" },
|
|
||||||
{
|
|
||||||
flex: "0 0 auto",
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "flex-end",
|
|
||||||
},
|
|
||||||
])}
|
|
||||||
/>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const elem = (
|
const elem = (
|
||||||
|
|
|
@ -102,16 +102,8 @@ export class UploadingsPanel extends React.Component<Props, State, {}> {
|
||||||
|
|
||||||
const elem = (
|
const elem = (
|
||||||
<div key={uploading.filePath} className="upload-item">
|
<div key={uploading.filePath} className="upload-item">
|
||||||
<Flexbox
|
<div className={`font-s info`}>
|
||||||
children={List([
|
<span className="title">{fileName} </span>
|
||||||
<RiUploadCloudLine
|
|
||||||
size="3rem"
|
|
||||||
id="icon-upload"
|
|
||||||
className="margin-r-m blue0-font"
|
|
||||||
/>,
|
|
||||||
|
|
||||||
<div className={`font-s`}>
|
|
||||||
<span className="">{fileName} </span>
|
|
||||||
<span className="desc grey0-font">
|
<span className="desc grey0-font">
|
||||||
{FileSize(uploading.uploaded, { round: 0 })}
|
{FileSize(uploading.uploaded, { round: 0 })}
|
||||||
/
|
/
|
||||||
|
@ -121,16 +113,10 @@ export class UploadingsPanel extends React.Component<Props, State, {}> {
|
||||||
/
|
/
|
||||||
{`${progress}%`}
|
{`${progress}%`}
|
||||||
</span>
|
</span>
|
||||||
</div>,
|
</div>
|
||||||
|
|
||||||
|
<div className="op">{op}</div>
|
||||||
|
|
||||||
op,
|
|
||||||
])}
|
|
||||||
childrenStyles={List([
|
|
||||||
{ flex: "0 0 auto" },
|
|
||||||
{},
|
|
||||||
{ justifyContent: "flex-end" },
|
|
||||||
])}
|
|
||||||
/>
|
|
||||||
{progressBar}
|
{progressBar}
|
||||||
{errorInfo}
|
{errorInfo}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue