feat: zarovnani ikony varovani doprava
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful

This commit is contained in:
2026-02-11 12:24:13 +01:00
parent ac6727efa5
commit a849f4e922
2 changed files with 15 additions and 5 deletions

View File

@@ -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;
} }
} }

View File

@@ -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)}>
<div className="restaurant-header-content">
<h3> <h3>
{getLunchChoiceName(location)} {getLunchChoiceName(location)}
</h3> </h3>
{menu?.lastUpdate && <small>Aktualizace: {getHumanDateTime(new Date(menu.lastUpdate))}</small>} {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} />