diff --git a/client/src/App.css b/client/src/App.css index 2085026..f350d84 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -58,4 +58,19 @@ .bump { margin-left: 2em; +} + +.overflow { + width: 120px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.clickable { + cursor: pointer; +} + +.no-overflow { + white-space: nowrap; } \ No newline at end of file diff --git a/client/src/App.js b/client/src/App.js index f3b996a..8996e1c 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import './App.css'; -import { Navbar, Dropdown, Icon } from 'react-materialize'; +import { Navbar, Dropdown, Button } from 'react-materialize'; import Flow from "./homies/Flow"; import Cash from './cash/Cash'; import Homies from './homies/Homies'; @@ -77,9 +77,17 @@ const App = (props) => { ); + const gangName = () => { + if (selectedGang && selectedGang.name && selectedGang.name.length > 0){ + return selectedGang.name; + } + + return '[No name]'; + } + const navbarLogoWithGang = (