diff --git a/browser/main/Components/CodeEditor.jsx b/browser/main/Components/CodeEditor.jsx index 0769de75..6cf3a4a7 100644 --- a/browser/main/Components/CodeEditor.jsx +++ b/browser/main/Components/CodeEditor.jsx @@ -20,6 +20,8 @@ module.exports = React.createClass({ var session = editor.getSession() if (this.props.mode != null && this.props.mode.length > 0) { session.setMode('ace/mode/' + this.props.mode) + } else { + session.setMode('ace/mode/text') } session.setUseSoftTabs(true) session.setOption('useWorker', false) @@ -40,7 +42,12 @@ module.exports = React.createClass({ this.state.editor.clearSelection() } if (prevProps.mode !== this.props.mode) { - this.state.editor.getSession().setMode('ace/mode/' + this.props.mode) + var session = this.state.editor.getSession() + if (this.props.mode != null && this.props.mode.length > 0) { + session.setMode('ace/mode/' + this.props.mode) + } else { + session.setMode('ace/mode/text') + } } }, render: function () { diff --git a/browser/main/Components/CodeViewer.jsx b/browser/main/Components/CodeViewer.jsx index af925f7e..bd20fe2f 100644 --- a/browser/main/Components/CodeViewer.jsx +++ b/browser/main/Components/CodeViewer.jsx @@ -21,6 +21,8 @@ module.exports = React.createClass({ var session = editor.getSession() if (this.props.mode != null && this.props.mode.length > 0) { session.setMode('ace/mode/' + this.props.mode) + } else { + session.setMode('ace/mode/text') } session.setUseSoftTabs(true) session.setOption('useWorker', false) @@ -34,7 +36,12 @@ module.exports = React.createClass({ this.state.editor.clearSelection() } if (prevProps.mode !== this.props.mode) { - this.state.editor.getSession().setMode('ace/mode/' + this.props.mode) + var session = this.state.editor.getSession() + if (this.props.mode != null && this.props.mode.length > 0) { + session.setMode('ace/mode/' + this.props.mode) + } else { + session.setMode('ace/mode/text') + } } }, render: function () { diff --git a/browser/main/Components/HomeNavigator.jsx b/browser/main/Components/HomeNavigator.jsx index 46d22409..fe975f83 100644 --- a/browser/main/Components/HomeNavigator.jsx +++ b/browser/main/Components/HomeNavigator.jsx @@ -13,6 +13,7 @@ var UserStore = require('../Stores/UserStore') var PreferencesModal = require('./PreferencesModal') var PlanetCreateModal = require('./PlanetCreateModal') +var TeamCreateModal = require('./TeamCreateModal') var ProfileImage = require('./ProfileImage') module.exports = React.createClass({ @@ -32,8 +33,11 @@ module.exports = React.createClass({ break } }, + openTeamCreateModal: function () { + this.openModal(TeamCreateModal, {user: this.state.currentUser, transitionTo: this.transitionTo}) + }, openPreferencesModal: function () { - this.openModal(PreferencesModal) + this.openModal(PreferencesModal, {currentUser: this.state.currentUser}) }, openPlanetCreateModal: function () { this.openModal(PlanetCreateModal, {transitionTo: this.transitionTo}) @@ -75,7 +79,9 @@ module.exports = React.createClass({ ) } - var planets = ((this.state.currentUser == null || this.state.currentUser.Planets == null) ? [] : this.state.currentUser.Planets).map(function (planet, index) { + var planets = (this.state.currentUser.Planets.concat(this.state.currentUser.Teams.reduce(function (planets, team) { + return planets.concat(team.Planets) + }, []))).map(function (planet, index) { return (
  • @@ -103,6 +109,15 @@ module.exports = React.createClass({ ) }, renderPopup: function () { + var teams = this.state.currentUser.Teams == null ? [] : this.state.currentUser.Teams.map(function (team) { + return ( +
  • + {team.profileName} ({team.name}) +
    +
  • + ) + }) + return (
    @@ -111,7 +126,7 @@ module.exports = React.createClass({
    @@ -122,20 +137,9 @@ module.exports = React.createClass({ Team
    diff --git a/browser/main/Components/NoteForm.jsx b/browser/main/Components/NoteForm.jsx index 9cbe571d..867250d9 100644 --- a/browser/main/Components/NoteForm.jsx +++ b/browser/main/Components/NoteForm.jsx @@ -29,7 +29,10 @@ var getOptions = function (input, callback) { }) } -var NoteForm = React.createClass({ +var EDIT_MODE = 0 +var PREVIEW_MODE = 1 + +module.exports = React.createClass({ mixins: [LinkedState, ReactRouter.State, Markdown], propTypes: { planet: React.PropTypes.object, @@ -37,10 +40,6 @@ var NoteForm = React.createClass({ transitionTo: React.PropTypes.func, note: React.PropTypes.object }, - statics: { - EDIT_MODE: 0, - PREVIEW_MODE: 1 - }, getInitialState: function () { var note = Object.assign({ title: '', @@ -55,7 +54,7 @@ var NoteForm = React.createClass({ }) return { note: note, - mode: NoteForm.EDIT_MODE + mode: EDIT_MODE } }, componentDidMount: function () { @@ -72,7 +71,7 @@ var NoteForm = React.createClass({ this.setState({note: note}) }, togglePreview: function () { - this.setState({mode: this.state.mode === NoteForm.EDIT_MODE ? NoteForm.PREVIEW_MODE : NoteForm.EDIT_MODE}) + this.setState({mode: this.state.mode === EDIT_MODE ? PREVIEW_MODE : EDIT_MODE}) }, submit: function () { var planet = this.props.planet @@ -102,7 +101,7 @@ var NoteForm = React.createClass({ } }, render: function () { - var content = this.state.mode === NoteForm.EDIT_MODE ? ( + var content = this.state.mode === EDIT_MODE ? (
    @@ -134,7 +133,7 @@ var NoteForm = React.createClass({
    - +
    @@ -144,5 +143,3 @@ var NoteForm = React.createClass({ ) } }) - -module.exports = NoteForm diff --git a/browser/main/Components/PlanetCreateModal.jsx b/browser/main/Components/PlanetCreateModal.jsx index 194e8062..8e7336b4 100644 --- a/browser/main/Components/PlanetCreateModal.jsx +++ b/browser/main/Components/PlanetCreateModal.jsx @@ -22,9 +22,9 @@ module.exports = React.createClass({ user: currentUser, planet: { name: '', - OwnerId: currentUser.id, public: true - } + }, + ownerName: currentUser.name } }, componentDidMount: function () { @@ -36,23 +36,12 @@ module.exports = React.createClass({ } }, handleSubmit: function () { - Hq.createPlanet(this.state.user.name, this.state.planet) + Hq.createPlanet(this.state.ownerName, this.state.planet) .then(function (res) { var planet = res.body - var currentUser = JSON.parse(localStorage.getItem('currentUser')) + PlanetStore.Actions.update(planet) - var isNew = !currentUser.Planets.some(function (_planet, index) { - if (planet.id === _planet) { - currentUser.Planets.splice(index, 1, planet) - return true - } - return false - }) - if (isNew) currentUser.Planets.push(planet) - - localStorage.setItem('currentUser', JSON.stringify(currentUser)) - UserStore.Actions.update(currentUser) this.props.transitionTo('planetHome', {userName: planet.userName, planetName: planet.name}) this.props.close() }.bind(this)) @@ -61,14 +50,20 @@ module.exports = React.createClass({ }) }, render: function () { + var teamOptions = this.state.user.Teams.map(function (team) { + return ( + + ) + }) return (
    of - + + {teamOptions} as + + +
    + ) + } +}) diff --git a/browser/main/Containers/MainContainer.jsx b/browser/main/Containers/MainContainer.jsx index e182d2a6..659f1166 100644 --- a/browser/main/Containers/MainContainer.jsx +++ b/browser/main/Containers/MainContainer.jsx @@ -40,8 +40,10 @@ module.exports = React.createClass({ if (this.isActive('root')) { if (localStorage.getItem('currentUser') == null) { this.transitionTo('login') + return } else { this.transitionTo('home') + return } } diff --git a/browser/main/Containers/PlanetContainer.jsx b/browser/main/Containers/PlanetContainer.jsx index c16e2171..3aa78e77 100644 --- a/browser/main/Containers/PlanetContainer.jsx +++ b/browser/main/Containers/PlanetContainer.jsx @@ -17,6 +17,32 @@ var Hq = require('../Services/Hq') var UserStore = require('../Stores/UserStore') var PlanetStore = require('../Stores/PlanetStore') +function deleteItemFromTargetArray (item, targetArray) { + targetArray.some(function (_item, index) { + if (_item.id === item.id) { + targetArray.splice(index, 1) + return true + } + return false + }) + + return targetArray +} + +function updateItemToTargetArray (item, targetArray) { + var isNew = !targetArray.some(function (_item, index) { + if (_item.id === item.id) { + targetArray.splice(index, 1, item) + return true + } + return false + }) + + if (isNew) targetArray.push(item) + + return targetArray +} + module.exports = React.createClass({ mixins: [ReactRouter.Navigation, ReactRouter.State, Modal, Reflux.listenTo(UserStore, 'onUserChange'), Reflux.listenTo(PlanetStore, 'onPlanetChange'), ArticleFilter], propTypes: { @@ -36,7 +62,6 @@ module.exports = React.createClass({ componentDidUpdate: function () { if (this.isActive('planetHome') && this.refs.list != null && this.refs.list.props.articles.length > 0) { var article = this.refs.list.props.articles[0] - console.log(article) var planet = this.state.planet switch (article.type) { case 'code': @@ -64,24 +89,14 @@ module.exports = React.createClass({ }, onPlanetChange: function (res) { if (this.state.planet == null) return + console.log(res.data) - var code, codes, note, notes, isNew, articleIndex, articlesCount + var code, note, articleIndex, articlesCount switch (res.status) { case 'codeUpdated': code = res.data if (code.PlanetId === this.state.planet.id) { - codes = this.state.planet.Codes - isNew = !codes.some(function (_code, index) { - if (code.localId === _code.localId) { - codes.splice(index, 1, code) - return true - } - return false - }) - - if (isNew) { - codes.unshift(code) - } + this.state.planet.Codes = updateItemToTargetArray(code, this.state.planet.Codes) this.setState({planet: this.state.planet}) } @@ -89,18 +104,7 @@ module.exports = React.createClass({ case 'noteUpdated': note = res.data if (note.PlanetId === this.state.planet.id) { - notes = this.state.planet.Notes - isNew = !notes.some(function (_note, index) { - if (note.localId === _note.localId) { - notes.splice(index, 1, note) - return true - } - return false - }) - - if (isNew) { - notes.unshift(note) - } + this.state.planet.Notes = updateItemToTargetArray(note, this.state.planet.Notes) this.setState({planet: this.state.planet}) } @@ -108,53 +112,49 @@ module.exports = React.createClass({ case 'codeDestroyed': code = res.data if (code.PlanetId === this.state.planet.id) { - codes = this.state.planet.Codes - codes.some(function (_code, index) { - if (code.localId === _code.localId) { - codes.splice(index, 1) - return true - } - return false - }) + this.state.planet.Codes = deleteItemFromTargetArray(code, this.state.planet.Codes) - articleIndex = this.getFilteredIndexOfCurrentArticle() - articlesCount = this.refs.list.props.articles.length + if (this.refs.detail.props.article != null && this.refs.detail.props.article.type === code.type && this.refs.detail.props.article.localId === code.localId) { + articleIndex = this.getFilteredIndexOfCurrentArticle() + articlesCount = this.refs.list.props.articles.length - this.setState({planet: this.state.planet}, function () { - if (articlesCount > 1) { - if (articleIndex > 0) { - this.selectArticleByListIndex(articleIndex - 1) - } else { - this.selectArticleByListIndex(articleIndex) + this.setState({planet: this.state.planet}, function () { + if (articlesCount > 1) { + if (articleIndex > 0) { + this.selectArticleByListIndex(articleIndex - 1) + } else { + this.selectArticleByListIndex(articleIndex) + } } - } - }) + }) + return + } + + this.setState({planet: this.state.planet}) } break case 'noteDestroyed': note = res.data if (note.PlanetId === this.state.planet.id) { - notes = this.state.planet.Notes - notes.some(function (_note, index) { - if (note.localId === _note.localId) { - notes.splice(index, 1) - return true - } - return false - }) + this.state.planet.Notes = deleteItemFromTargetArray(note, this.state.planet.Notes) - articleIndex = this.getFilteredIndexOfCurrentArticle() - articlesCount = this.refs.list.props.articles.length + if (this.refs.detail.props.article != null && this.refs.detail.props.article.type === note.type && this.refs.detail.props.article.localId === note.localId) { + articleIndex = this.getFilteredIndexOfCurrentArticle() + articlesCount = this.refs.list.props.articles.length - this.setState({planet: this.state.planet}, function () { - if (articlesCount > 1) { - if (articleIndex > 0) { - this.selectArticleByListIndex(articleIndex - 1) - } else { - this.selectArticleByListIndex(articleIndex) + this.setState({planet: this.state.planet}, function () { + if (articlesCount > 1) { + if (articleIndex > 0) { + this.selectArticleByListIndex(articleIndex - 1) + } else { + this.selectArticleByListIndex(articleIndex) + } } - } - }) + }) + return + } + + this.setState({planet: this.state.planet}) } break } @@ -283,7 +283,7 @@ module.exports = React.createClass({ } this.setState({search: keywords.join(' ')}, function () { - this.selectArticleByIndex(0) + this.selectArticleByListIndex(0) }) }, toggleNoteFilter: function () { @@ -311,7 +311,7 @@ module.exports = React.createClass({ } this.setState({search: keywords.join(' ')}, function () { - this.selectArticleByIndex(0) + this.selectArticleByListIndex(0) }) }, applyTagFilter: function (tag) { diff --git a/browser/main/Containers/SignupContainer.jsx b/browser/main/Containers/SignupContainer.jsx index aee7941c..71c20f63 100644 --- a/browser/main/Containers/SignupContainer.jsx +++ b/browser/main/Containers/SignupContainer.jsx @@ -37,8 +37,7 @@ module.exports = React.createClass({ }.bind(this)) .catch(function (err) { var res = err.response - console.log(res) - console.log(err.status) + console.error(res.body) if (err.status === 409) { // Confliction var emailConflicted = res.body.errors[0].path === 'email' diff --git a/browser/main/Containers/UserContainer.jsx b/browser/main/Containers/UserContainer.jsx index b013dfa9..e4f5c82f 100644 --- a/browser/main/Containers/UserContainer.jsx +++ b/browser/main/Containers/UserContainer.jsx @@ -1,5 +1,3 @@ -/* global localStorage */ - var React = require('react/addons') var ReactRouter = require('react-router') var RouteHandler = ReactRouter.RouteHandler @@ -15,7 +13,6 @@ var ProfileImage = require('../Components/ProfileImage') var EditProfileModal = require('../Components/EditProfileModal') var UserStore = require('../Stores/UserStore') -var PlanetStore = require('../Stores/PlanetStore') module.exports = React.createClass({ mixins: [LinkedState, ReactRouter.State, Modal, Reflux.listenTo(UserStore, 'onUserChange')], @@ -69,34 +66,6 @@ module.exports = React.createClass({ console.error(err) }) }, - onListen: function (res) { - console.log('on Listen') - if (res == null || res.status == null) return - - var currentUser = this.state.currentUser - - if (res.status === 'planetCreated') { - currentUser.Planets.push(res.data) - - localStorage.setItem('currentUser', JSON.stringify(currentUser)) - this.setState({currentUser: currentUser}) - return - } - - if (res.status === 'planetDeleted') { - currentUser.Planets.some(function (_planet, index) { - if (res.data.id === _planet.id) { - currentUser.Planets.splice(index, 1) - return true - } - return false - }) - - localStorage.setItem('currentUser', JSON.stringify(currentUser)) - this.setState({currentUser: currentUser}) - return - } - }, openEditProfileModal: function () { this.openModal(EditProfileModal, {targetUser: this.state.user}) }, @@ -110,50 +79,10 @@ module.exports = React.createClass({ User Loading...
    ) + } else if (user.userType === 'team') { + return this.renderTeamHome() } else { - var userPlanets = user.Planets.map(function (planet) { - return ( -
  • - {planet.userName}/{planet.name} -
  • - ) - }) - - var teams = user.Teams == null ? [] : user.Teams.map(function (team) { - return ( -
  • - Some team -
  • - ) - }) - return ( -
    -
    - -
    -
    {user.profileName}
    -
    {user.name}
    -
    - - -
    -
    -
    {teams.length} {teams.length > 0 ? 'Teams' : 'Team'}
    -
      - {teams} -
    -
    -
    -
    {userPlanets.length} {userPlanets.length > 0 ? 'Planets' : 'Planet'}
    -
    -
    {user.profileName}
    -
      - {userPlanets} -
    -
    -
    -
    - ) + return this.renderUserHome() } } else { return ( @@ -162,5 +91,120 @@ module.exports = React.createClass({
    ) } + }, + renderTeamHome: function () { + var user = this.state.user + + var userPlanets = user.Planets.map(function (planet) { + return ( +
  • + {planet.userName}/{planet.name} +
  • + ) + }) + + var members = user.Members == null ? [] : user.Members.map(function (member) { + return ( +
  • + {member.profileName} ({member.name}) +
  • + ) + }) + return ( +
    +
    + +
    +
    {user.profileName}
    +
    {user.name}
    +
    + + +
    +
    +
    {members.length} {members.length > 0 ? 'Members' : 'Member'}
    +
      + {members} +
    +
    +
    +
    {userPlanets.length} {userPlanets.length > 0 ? 'Planets' : 'Planet'}
    +
    +
      + {userPlanets} +
    +
    +
    +
    + ) + }, + renderUserHome: function () { + var user = this.state.user + + var userPlanets = user.Planets.map(function (planet) { + return ( +
  • + {planet.userName}/{planet.name} +  {!planet.public ? () : null} +
  • + ) + }) + + var teams = user.Teams == null ? [] : user.Teams.map(function (team) { + return ( +
  • + {team.profileName} ({team.name}) +
  • + ) + }) + + var teamPlanets = user.Teams == null ? [] : user.Teams.map(function (team) { + var planets = team.Planets.map(function (planet) { + return ( +
  • + {planet.userName}/{planet.name} +  {!planet.public ? () : null} +
  • + ) + }) + return ( +
    +
    {team.name}
    +
      + {planets} +
    +
    + ) + }) + + return ( +
    +
    + +
    +
    {user.profileName}
    +
    {user.name}
    +
    + + +
    +
    +
    {teams.length} {teams.length > 0 ? 'Teams' : 'Team'}
    +
      + {teams} +
    +
    +
    +
    {userPlanets.length} {userPlanets.length > 0 ? 'Planets' : 'Planet'}
    +
    +
    {user.profileName}
    +
      + {userPlanets} +
    +
    + {teamPlanets} +
    +
    + ) } }) diff --git a/browser/main/Services/Hq.js b/browser/main/Services/Hq.js index ae855c2e..42d775a0 100644 --- a/browser/main/Services/Hq.js +++ b/browser/main/Services/Hq.js @@ -44,6 +44,14 @@ module.exports = { }) .send(input) }, + createTeam: function (userName, input) { + return request + .post(apiUrl + 'resources/' + userName + '/teams') + .set({ + Authorization: 'Bearer ' + localStorage.getItem('token') + }) + .send(input) + }, createPlanet: function (userName, input) { return request .post(apiUrl + 'resources/' + userName + '/planets') diff --git a/browser/main/Stores/PlanetStore.js b/browser/main/Stores/PlanetStore.js index 08cbd08a..08dcac47 100644 --- a/browser/main/Stores/PlanetStore.js +++ b/browser/main/Stores/PlanetStore.js @@ -2,35 +2,94 @@ var Reflux = require('reflux') +var UserStore = require('./UserStore') + var actions = Reflux.createActions([ - 'updatePlanet', - 'destroyPlanet', + 'update', + 'destroy', 'updateCode', 'destroyCode', 'updateNote', 'destroyNote' ]) +function deleteItemFromTargetArray (item, targetArray) { + targetArray.some(function (_item, index) { + if (_item.id === item.id) { + targetArray.splice(index, 1) + return true + } + return false + }) + + return targetArray +} + +function updateItemToTargetArray (item, targetArray) { + var isNew = !targetArray.some(function (_item, index) { + if (_item.id === item.id) { + targetArray.splice(index, 1, item) + return true + } + return false + }) + + if (isNew) targetArray.push(item) + + return targetArray +} + module.exports = Reflux.createStore({ listenables: [actions], Actions: actions, - onUpdatePlanet: function (planet) { + onUpdate: function (planet) { + // Copy the planet object + var aPlanet = Object.assign({}, planet) + delete aPlanet.Codes + delete aPlanet.Notes + // Check if the planet should be updated to currentUser + var currentUser = JSON.parse(localStorage.getItem('currentUser')) + + var ownedByCurrentUser = currentUser.id === aPlanet.OwnerId + + if (ownedByCurrentUser) { + currentUser.Planets = updateItemToTargetArray(aPlanet, currentUser.Planets) + } + + if (!ownedByCurrentUser) { + var team = null + currentUser.Teams.some(function (_team) { + if (_team.id === aPlanet.OwnerId) { + team = _team + return true + } + return + }) + + if (team) { + team.Planets = updateItemToTargetArray(aPlanet, team.Planets) + } + } + + // Update currentUser + localStorage.setItem('currentUser', JSON.stringify(currentUser)) + UserStore.Actions.update(currentUser) + + // Update the planet + localStorage.setItem('planet-' + planet.id, JSON.stringify(planet)) + + this.trigger({ + status: 'updated', + data: planet + }) }, onUpdateCode: function (code) { code.type = 'code' var planet = JSON.parse(localStorage.getItem('planet-' + code.PlanetId)) if (planet != null) { - var isNew = !planet.Codes.some(function (_code, index) { - if (code.id === _code.id) { - planet.Codes.splice(index, 1, code) - return true - } - return false - }) - - if (isNew) planet.Codes.unshift(code) + planet.Codes = updateItemToTargetArray(code, planet.Codes) localStorage.setItem('planet-' + code.PlanetId, JSON.stringify(planet)) } @@ -43,16 +102,11 @@ module.exports = Reflux.createStore({ onDestroyCode: function (code) { var planet = JSON.parse(localStorage.getItem('planet-' + code.PlanetId)) if (planet != null) { - planet.Codes.some(function (_code, index) { - if (code.id === _code.id) { - planet.Codes.splice(index, 1) - return true - } - return false - }) + planet.Codes = deleteItemFromTargetArray(code, planet.Codes) localStorage.setItem('planet-' + code.PlanetId, JSON.stringify(planet)) } + code.type = 'code' this.trigger({ status: 'codeDestroyed', @@ -64,15 +118,7 @@ module.exports = Reflux.createStore({ var planet = JSON.parse(localStorage.getItem('planet-' + note.PlanetId)) if (planet != null) { - var isNew = !planet.Notes.some(function (_note, index) { - if (note.id === _note.id) { - planet.Notes.splice(index, 1, note) - return true - } - return false - }) - - if (isNew) planet.Codes.unshift(note) + planet.Notes = updateItemToTargetArray(note, planet.Notes) localStorage.setItem('planet-' + note.PlanetId, JSON.stringify(planet)) } @@ -85,16 +131,11 @@ module.exports = Reflux.createStore({ onDestroyNote: function (note) { var planet = JSON.parse(localStorage.getItem('planet-' + note.PlanetId)) if (planet != null) { - planet.Notes.some(function (_note, index) { - if (note.id === _note.id) { - planet.Notes.splice(index, 1) - return true - } - return false - }) + planet.Notes = deleteItemFromTargetArray(note, planet.Notes) localStorage.setItem('planet-' + note.PlanetId, JSON.stringify(planet)) } + note.type = 'note' this.trigger({ status: 'noteDestroyed', diff --git a/browser/styles/main/containers/UserContainer.styl b/browser/styles/main/containers/UserContainer.styl index 3b1647e1..733b8e25 100644 --- a/browser/styles/main/containers/UserContainer.styl +++ b/browser/styles/main/containers/UserContainer.styl @@ -194,16 +194,20 @@ margin-top 25px padding 10px 15px border-radius 5px - .teamList + .teamList, .memberList absolute left bottom top 125px width 200px padding 15px border-right solid 1px borderColor overflow-y auto - .teamLabel + .teamLabel, .memberLabel font-size 1.2em margin-bottom 15px + .teams, .members + li + margin-bottom 10px + font-size 1.1em .planetList absolute right bottom top 125px @@ -212,7 +216,7 @@ overflow-y auto .planetLabel font-size 1.2em - margin-bottom 25px + margin-bottom 15px .planetGroup margin-left 15px .planetGroupLabel @@ -220,3 +224,5 @@ margin-bottom 15px .planets margin-left 15px + li + margin-bottom 10px diff --git a/browser/styles/shared/modal.styl b/browser/styles/shared/modal.styl index 99e8ad73..65a804f3 100644 --- a/browser/styles/shared/modal.styl +++ b/browser/styles/shared/modal.styl @@ -171,7 +171,7 @@ border-radius 5px marked() - .PlanetCreateModal.modal, .PlanetAddUserModal.modal + .PlanetCreateModal.modal, .TeamCreateModal.modal padding 60px 0 .nameInput width 80%