<style include="shared-style">
:host {
-webkit-tap-highlight-color: transparent;
display: block;
}
#card-heading {
cursor: pointer;
justify-content: space-between;
padding-inline-end: 0;
}
#tab-item-list {
padding: 8px 0;
}
#last-update-time {
color: var(--cr-secondary-text-color);
}
#title-left-content {
display: flex;
overflow: hidden;
}
#device-name {
overflow: hidden;
padding-inline-end: 3px;
text-overflow: ellipsis;
}
#right-buttons {
color: var(--cr-secondary-text-color);
margin-inline-end: 24px;
}
#collapse {
overflow: hidden;
}
#history-item-container {
background-color: var(--cr-card-background-color);
border-radius: var(--cr-card-border-radius);
box-shadow: var(--cr-card-shadow);
}
.item-container {
align-items: center;
display: flex;
margin: 0 20px;
min-height: var(--item-height);
}
.window-separator {
background-color: var(--card-border-color);
height: 1px;
margin: 5px auto;
width: 80%;
}
</style>
<div id="history-item-container">
<div class="card-title" id="card-heading" aria-expanded$="[[opened]]"
aria-controls="collapse" on-click="toggleTabCard">
<div id="title-left-content">
<div id="device-name">
[[device]]
</div>
<span id="last-update-time">[[lastUpdateTime]]</span>
</div>
<div id="right-buttons">
<cr-icon-button id="menu-button" iron-icon="cr:more-vert"
on-click="onMenuButtonClick_" title="$i18n{actionMenuDescription}">
</cr-icon-button>
<cr-icon-button id="collapse-button"
iron-icon="[[getCollapseIcon_(opened)]]"
title$="[[getCollapseTitle_(opened)]]"></cr-icon-button>
</div>
</div>
<cr-collapse opened="{{opened}}" id="collapse">
<div id="tab-item-list">
<template is="dom-repeat" items="[[tabs]]" as="tab" id="tab-list">
<div class="item-container">
<a href="[[tab.url]]" class="website-link" title="[[tab.title]]"
on-click="openTab_" on-contextmenu="onLinkRightClick_">
<div class="website-icon"></div>
<history-searched-label class="website-title"
title="[[tab.title]]"
search-term="[[searchTerm]]"></history-searched-label>
</a>
</div>
<div class="window-separator"
hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]">
</div>
</template>
</div>
</cr-collapse>
</div>