Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/tds-widget/src/chat/reservation-info/elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import styled, { css } from 'styled-components'

import { reservationInfoTheme } from './theme-provider'

const RESERVATION_INFO_MIN_CONTENT_HEIGHT = 62
const RESERVATION_INFO_MIN_CONTENT_HEIGHT = 40
const PRODUCT_INFO_MIN_CONTENT_HEIGHT = 21

export const Container = styled(BaseContainer)`
padding: 11px 15px;
padding: 12px;
box-shadow: 0 0 20px 0
${({ theme }) =>
(theme.reservationInfo || reservationInfoTheme).shadowColor};
border-radius: 8px;
border-radius: 12px;
border: 1px solid
${({ theme }) =>
(theme.reservationInfo || reservationInfoTheme).borderColor};
Expand All @@ -25,7 +25,7 @@ export const Container = styled(BaseContainer)`
`

export const Details = styled.dl<{ expanded: boolean }>`
margin-top: 6px;
margin-top: ${({ expanded }) => (expanded ? '4px' : '1.5px')};
display: flex;
flex-direction: column;
gap: 2px;
Expand All @@ -41,14 +41,14 @@ export const Details = styled.dl<{ expanded: boolean }>`
flex-shrink: 0;
color: ${({ theme }) =>
(theme.reservationInfo || reservationInfoTheme).detail.labelColor};
margin-right: 14px;
margin-right: 8px;
width: 42px;
}

dd {
display: inline;
color: ${({ theme }) =>
(theme.reservationInfo || reservationInfoTheme).valueColor};
(theme.reservationInfo || reservationInfoTheme).detail.valueColor};
${({ expanded }) => !expanded && maxLinesMixin({ maxLines: 1 })}

& + dd {
Expand All @@ -72,8 +72,8 @@ export const ContentContainer = styled(BaseContainer)`
`

export const Thumbnail = styled.img<{ small?: boolean }>`
width: ${({ small = false }) => (small ? '32' : '42')}px;
height: ${({ small = false }) => (small ? '32' : '42')}px;
width: ${({ small = false }) => (small ? '30' : '40')}px;
height: ${({ small = false }) => (small ? '30' : '40')}px;
border-radius: 6px;
margin-right: 12px;
`
Expand Down Expand Up @@ -107,10 +107,10 @@ export const ArrowButton = styled.button.attrs({ type: 'button' })<{
export const TitleContainer = styled(BaseContainer)`
display: flex;
flex-direction: row;
gap: 6px;
gap: 16px;

&:has(${ArrowButton}) {
padding-right: 16px;
padding-right: 18px;
}
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ function ReservationInfoImpl(
{thumbnail ? <Thumbnail src={thumbnail} small={!hasDetails} /> : null}
<DetailContainer expanded={expanded}>
<TitleContainer>
{label ? (
<Label color={label.color} css={label.css}>
{label.text}
</Label>
) : null}
{title ? (
<Title ref={titleRef} maxLines={expanded ? undefined : 1}>
{title}
</Title>
) : null}
{label ? (
<Label color={label.color} css={label.css}>
{label.text}
</Label>
) : null}
{expandable ? (
<ArrowButton
expanded={expanded}
Expand Down
Loading