You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Add full width widgets
This commit is contained in:
@@ -43,7 +43,7 @@ export default React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_AppTile" id={this.props.id}>
|
<div className={this.props.fullWdith ? "mx_AppTileFullWidth" : "mx_AppTile"} id={this.props.id}>
|
||||||
<div className="mx_AppTileMenuBar">
|
<div className="mx_AppTileMenuBar">
|
||||||
{this.props.name}
|
{this.props.name}
|
||||||
<span className="mx_AppTileMenuBarWidgets">
|
<span className="mx_AppTileMenuBarWidgets">
|
||||||
|
|||||||
@@ -106,7 +106,13 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
const apps = this.state.apps.map(
|
const apps = this.state.apps.map(
|
||||||
(app) => <AppTile key={app.id} id={app.id} url={app.url} name={app.name}/>);
|
(app, index, arr) => <AppTile
|
||||||
|
key={app.id}
|
||||||
|
id={app.id}
|
||||||
|
url={app.url}
|
||||||
|
name={app.name}
|
||||||
|
fullWdith={arr.length<2 ? true : false}
|
||||||
|
/>);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_AppsDrawer">
|
<div className="mx_AppsDrawer">
|
||||||
|
|||||||
Reference in New Issue
Block a user