1
0
Fork 0

boot strap

This commit is contained in:
ChaotiCryptidz 2022-06-02 15:43:18 +01:00
parent 516658d7f1
commit bac911d593
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@
"dependencies": { "dependencies": {
"@fontsource/comic-neue": "^4.5.8", "@fontsource/comic-neue": "^4.5.8",
"@fontsource/opendyslexic": "^4.5.4", "@fontsource/opendyslexic": "^4.5.4",
"bootstrap": "latest", "bootstrap": "^5.1.3",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"postcss-loader": "^7.0.0", "postcss-loader": "^7.0.0",
"preact": "^10.7.2", "preact": "^10.7.2",

View file

@ -16,7 +16,7 @@ export const FoodItemsContainer = (props: {
} }
function shouldShowItem(contents, exclude: FoodExcludeTypes): boolean { function shouldShowItem(contents, exclude: FoodExcludeTypes): boolean {
if (!exclude) return false;
for (let key of Object.keys(exclude)) { for (let key of Object.keys(exclude)) {
if (Object.keys(contents).includes(key)) { if (Object.keys(contents).includes(key)) {
if (!exclude[key]) return false; if (!exclude[key]) return false;
@ -59,7 +59,7 @@ export class AdvancedFoodItem extends Component<FoodItemProps & { extra: string
render() { render() {
return ( return (
<HideIfFoodExcluded {...this.props}> <HideIfFoodExcluded {...this.props}>
<div class="list-group-item" role="listitem"> <div class="list-group-item mb-1" role="listitem">
<h5 class="mb-1">{this.props.title}</h5> <h5 class="mb-1">{this.props.title}</h5>
<p class="mb-1">{this.props.extra}</p> <p class="mb-1">{this.props.extra}</p>
</div> </div>