mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-06 03:36:46 +00:00
* ['notice' popover, 'all notice' dialog] fixup for mobile * ['Files' page] fixed library icon size for mobile * ['settings' page] fixup for 'Email notification' * ['my libs'] fixed 'star/unstar', 'share', 'delete' * ['deleted repos' dialog] modified column width of the table for mobile * ['share' dialog] modified 'link details' panel for mobile * [side panel resizer] removed it for mobile * [group/department, shared with all] fixed the operation menu for mobile * ['dir view'] don't offer 'repo history' page for mobile * ['help'] fixup for page with large images, for mobile - fixup for http://127.0.0.1:8000/help/drive_client_2.0_for_windows_10/ (in mobile, the content of it overflowed to the right, and was cut off) * ['file view'] removed 'history' page for mobile * ['markdown file view'] removed 'history' page for small screen, mobile * ['dir view'] added a gray layer to close the 'file/folder tree' panel in mobile * ['dir view'] fixup for the 'path' bar in mobile * ['dir view', 'shared dir view'] don't display the 'tag list' in root for mobile
29 lines
773 B
JavaScript
29 lines
773 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { gettext } from '../utils/constants';
|
|
|
|
const propTypes = {
|
|
inAllLibs: PropTypes.bool // for 'Libraries' in 'Files' page
|
|
};
|
|
|
|
class LibsMobileThead extends React.Component {
|
|
|
|
render() {
|
|
const { inAllLibs = false } = this.props;
|
|
const widthList = inAllLibs ? ['14%', '78%', '8%'] : ['12%', '80%', '8%'];
|
|
return (
|
|
<thead>
|
|
<tr>
|
|
<th width={widthList[0]}><span className="sr-only">{gettext('Library Type')}</span></th>
|
|
<th width={widthList[1]}></th>
|
|
<th width={widthList[2]}><span className="sr-only">{gettext('Actions')}</span></th>
|
|
</tr>
|
|
</thead>
|
|
);
|
|
}
|
|
}
|
|
|
|
LibsMobileThead.propTypes = propTypes;
|
|
|
|
export default LibsMobileThead;
|