feat: zarovnani ikony varovani doprava
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
This commit is contained in:
@@ -315,11 +315,20 @@ body {
|
|||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: var(--luncher-transition);
|
transition: var(--luncher-transition);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--luncher-primary-hover);
|
background: var(--luncher-primary-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.restaurant-header-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
@@ -338,7 +347,6 @@ body {
|
|||||||
.restaurant-warning {
|
.restaurant-warning {
|
||||||
color: #f59e0b;
|
color: #f59e0b;
|
||||||
cursor: help;
|
cursor: help;
|
||||||
margin-left: 8px;
|
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -489,10 +489,12 @@ function App() {
|
|||||||
return <Col md={6} lg={3} className='mt-3'>
|
return <Col md={6} lg={3} className='mt-3'>
|
||||||
<div className="restaurant-card">
|
<div className="restaurant-card">
|
||||||
<div className="restaurant-header" style={{ cursor: canChangeChoice ? 'pointer' : 'default' }} onClick={() => doAddClickFoodChoice(location)}>
|
<div className="restaurant-header" style={{ cursor: canChangeChoice ? 'pointer' : 'default' }} onClick={() => doAddClickFoodChoice(location)}>
|
||||||
<h3>
|
<div className="restaurant-header-content">
|
||||||
{getLunchChoiceName(location)}
|
<h3>
|
||||||
</h3>
|
{getLunchChoiceName(location)}
|
||||||
{menu?.lastUpdate && <small>Aktualizace: {getHumanDateTime(new Date(menu.lastUpdate))}</small>}
|
</h3>
|
||||||
|
{menu?.lastUpdate && <small>Aktualizace: {getHumanDateTime(new Date(menu.lastUpdate))}</small>}
|
||||||
|
</div>
|
||||||
{menu?.warnings && menu.warnings.length > 0 && (
|
{menu?.warnings && menu.warnings.length > 0 && (
|
||||||
<span className="restaurant-warning" title={menu.warnings.join('\n')}>
|
<span className="restaurant-warning" title={menu.warnings.join('\n')}>
|
||||||
<FontAwesomeIcon icon={faTriangleExclamation} />
|
<FontAwesomeIcon icon={faTriangleExclamation} />
|
||||||
|
|||||||
Reference in New Issue
Block a user