fix: opravy zobrazeni sekce vybranych jidel
This commit is contained in:
@@ -621,56 +621,77 @@ input[type="text"], input[type="email"], input[type="password"] {
|
||||
|
||||
tbody tr {
|
||||
transition: var(--luncher-transition);
|
||||
border-bottom: 1px solid var(--luncher-border-light);
|
||||
|
||||
&:hover {
|
||||
background: var(--luncher-bg-hover);
|
||||
}
|
||||
|
||||
&:last-child td {
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
|
||||
td {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 12px 16px;
|
||||
border-color: var(--luncher-border-light);
|
||||
border: none;
|
||||
color: var(--luncher-text);
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.user-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 8px 0 0 20px;
|
||||
.user-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
li {
|
||||
color: var(--luncher-text-secondary);
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 4px;
|
||||
.user-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.food-choices {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
gap: 4px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.food-choice-item {
|
||||
background: var(--luncher-primary-light);
|
||||
padding: 8px 12px;
|
||||
border-radius: var(--luncher-radius-sm);
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 0.9rem;
|
||||
border-left: 3px solid var(--luncher-primary);
|
||||
gap: 6px;
|
||||
font-size: 0.85rem;
|
||||
color: var(--luncher-text-secondary);
|
||||
|
||||
.action-icon {
|
||||
opacity: 0;
|
||||
transition: var(--luncher-transition);
|
||||
}
|
||||
|
||||
&:hover .action-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.food-choice-name {
|
||||
color: var(--luncher-text);
|
||||
font-weight: 500;
|
||||
color: var(--luncher-text-secondary);
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -510,12 +510,16 @@ function App() {
|
||||
const isBuyer = userPayload?.isBuyer || false;
|
||||
return <tr key={entry[0]}>
|
||||
<td>
|
||||
<div className="user-row">
|
||||
<div className="user-info">
|
||||
{trusted && <span className='trusted-icon' title='Uživatel ověřený doménovým přihlášením'>
|
||||
<FontAwesomeIcon icon={faCircleCheck} style={{ cursor: "help" }} />
|
||||
</span>}
|
||||
<strong>{login}</strong>
|
||||
{userPayload.departureTime && <small className="ms-2" style={{ color: 'var(--luncher-text-muted)' }}>({userPayload.departureTime})</small>}
|
||||
{userPayload.note && <span className="ms-2" style={{ fontSize: 'small', color: 'var(--luncher-text-secondary)' }}>({userPayload.note})</span>}
|
||||
</div>
|
||||
<div className="user-actions">
|
||||
{login === auth.login && canChangeChoice && locationKey === LunchChoice.OBJEDNAVAM && <span title='Označit/odznačit se jako objednávající'>
|
||||
<FontAwesomeIcon onClick={() => {
|
||||
markAsBuyer();
|
||||
@@ -541,10 +545,11 @@ function App() {
|
||||
doRemoveChoices(key as LunchChoice);
|
||||
}} className='action-icon' icon={faTrashCan} />
|
||||
</span>}
|
||||
</td>
|
||||
{userChoices?.length && food ? <td>
|
||||
</div>
|
||||
</div>
|
||||
{userChoices && userChoices.length > 0 && food && (
|
||||
<div className="food-choices">
|
||||
{userChoices?.map(foodIndex => {
|
||||
{userChoices.map(foodIndex => {
|
||||
const restaurantKey = key as Restaurant;
|
||||
const foodName = food[restaurantKey]?.food?.[foodIndex].name;
|
||||
return <div key={foodIndex} className="food-choice-item">
|
||||
@@ -558,7 +563,8 @@ function App() {
|
||||
</div>
|
||||
})}
|
||||
</div>
|
||||
</td> : null}
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user