-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: metadata details settings (#7145)
* feat: metadata details settings * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code --------- Co-authored-by: 杨国璇 <[email protected]> Co-authored-by: 杨国璇 <[email protected]>
- Loading branch information
1 parent
3f6c4f3
commit ac124d2
Showing
45 changed files
with
677 additions
and
409 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
frontend/src/components/dirent-detail/detail/header/title/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.detail-header .detail-title { | ||
display: flex; | ||
flex: 1; | ||
align-items: center; | ||
width: 0; /* prevent strut flex layout */ | ||
} | ||
|
||
.detail-header .detail-title .detail-header-icon-container { | ||
height: 32px; | ||
width: 32px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-shrink: 0; | ||
} | ||
|
||
.detail-header .detail-title .name { | ||
margin: 0 0.5rem 0 6px; | ||
line-height: 1.5rem; | ||
vertical-align: middle; | ||
font-size: 1rem; | ||
color: #212529; | ||
} |
24 changes: 24 additions & 0 deletions
24
frontend/src/components/dirent-detail/detail/header/title/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import './index.css'; | ||
|
||
const Title = ({ icon, iconSize, title }) => { | ||
|
||
return ( | ||
<div className="detail-title dirent-title"> | ||
<div className="detail-header-icon-container"> | ||
<img src={icon} width={iconSize} height={iconSize} alt="" /> | ||
</div> | ||
<span className="name ellipsis" title={title}>{title}</span> | ||
</div> | ||
); | ||
}; | ||
|
||
Title.propTypes = { | ||
icon: PropTypes.string, | ||
iconSize: PropTypes.number, | ||
title: PropTypes.string, | ||
}; | ||
|
||
export default Title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.