This commit is contained in:
Dan Wahlin 2021-08-29 20:39:52 -07:00
Родитель bca39737ca
Коммит c1fc9a9f8d
4 изменённых файлов: 40 добавлений и 22 удалений

Просмотреть файл

@ -3,13 +3,9 @@
"version": "0.46.0", "version": "0.46.0",
"description": "A simple brainstorming app built using Create React App plus a Fluid data model", "description": "A simple brainstorming app built using Create React App plus a Fluid data model",
"homepage": "https://fluidframework.com", "homepage": "https://fluidframework.com",
"repository": "microsoft/FluidExamples", "repository": "danwahlin/LearnTogether-Brainstorm-App",
"license": "MIT", "license": "MIT",
"author": "Microsoft and contributors", "author": "Microsoft and contributors",
"sideEffects": false,
"main": "dist/index.js",
"module": "lib/index.js",
"types": "dist/index.d.ts",
"scripts": { "scripts": {
"build": "react-scripts build", "build": "react-scripts build",
"eject": "react-scripts eject", "eject": "react-scripts eject",

Просмотреть файл

@ -71,29 +71,39 @@ header {
margin-right: 15px; margin-right: 15px;
} }
.mb-5 { .ml-10 {
margin-bottom: 5px; margin-left: 10px;
}
.pb-5 {
padding-bottom: 5px;
} }
.selected-items { .selected-items {
margin: 0 auto;
max-width: 960px;
background-color: #efefef; background-color: #efefef;
} }
.selected-items h2 { .selected-items h2 {
height: 15px; height: 35px;
background-color: #ccc; background-color: #919191;
margin-bottom: 0px;
} }
.selected-items h2 div { .selected-items h2 div {
margin-left: 10px; margin-left: 10px;
color: white;
}
.heading {
font-size: 20px;
margin-bottom: 2px;
} }
.items-list ul { .items-list ul {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin: 5px 0px 0px 10px; margin: 5px 0px 0px 10px;
font-size: 12px;
padding-bottom: 2px; padding-bottom: 2px;
} }
@ -101,18 +111,23 @@ header {
margin-bottom: 5px; margin-bottom: 5px;
} }
.icon-wrapper { .selecteditem {
position: relative;
text-align: center;
height: 20px;
margin-right: 5px;
}
.circle-icon {
font-size: 18px; font-size: 18px;
} }
.icon-wrapper {
position: relative;
text-align: center;
height: 30px;
margin-right: 8px;
}
.circle-icon {
font-size: 30px;
}
.circle-icon-overlay { .circle-icon-overlay {
font-size: 18px;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;

Просмотреть файл

@ -29,8 +29,8 @@ export function ItemsList(props: ItemsListProps) {
<div className="selected-items"> <div className="selected-items">
<h2 className="grid-container"> <h2 className="grid-container">
<div className="left">Selected Items</div> <div className="left heading">Selected Items</div>
<div className="right end mr-15">Votes</div> <div className="right end mr-15 heading">Votes</div>
</h2> </h2>
{!!notes.length && {!!notes.length &&
<ul> <ul>
@ -39,7 +39,7 @@ export function ItemsList(props: ItemsListProps) {
return ( return (
<li key={i}> <li key={i}>
<div className="grid-container"> <div className="grid-container">
<div className="left">{note.text}</div> <div className="left selecteditem">{note.text}</div>
<div className="right end mr-15"> <div className="right end mr-15">
<div className="icon-wrapper"> <div className="icon-wrapper">
<CircleFillIcon className="circle-icon" <CircleFillIcon className="circle-icon"
@ -53,6 +53,9 @@ export function ItemsList(props: ItemsListProps) {
})} })}
</ul> </ul>
} }
{notes.length == 0 &&
<div className="selecteditem ml-10 pb-5">No notes selected</div>
}
</div> </div>
</div> </div>
); );

Просмотреть файл

@ -1,3 +1,7 @@
html {
font-size: 16px;
}
body { body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",