Skip to content

Commit

Permalink
Settings: Printers: Cleanup layout and fix for long names
Browse files Browse the repository at this point in the history
BUG=726676
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2906893003
Cr-Commit-Position: refs/heads/master@{#475665}
  • Loading branch information
stevenjb authored and Commit Bot committed May 30, 2017
1 parent c95caf0 commit e9481b6
Showing 1 changed file with 11 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,8 @@
<dom-module id="settings-cups-printers-list">
<template>
<style include="settings-shared">
#container {
border-top: 1px solid lightgray;
display: flex;
padding: 2px 20px;
}

.name-column {
.printer-name {
flex: 1;
margin: 2px;
}

.list-item {
min-height: 20px;
}
</style>

Expand All @@ -33,18 +22,18 @@
$i18n{removePrinter}
</button>
</dialog>
<template is="dom-repeat" items="[[printers]]"
filter="[[filterPrinter_(searchTerm)]]">
<div id="container" class="list-item">
<div class="name-column">
<span class="name" id="printer-name">[[item.printerName]]</span>
<div class="list-frame vertical-list">
<template is="dom-repeat" items="[[printers]]"
filter="[[filterPrinter_(searchTerm)]]">
<div class="list-item">
<div class="printer-name text-elide">[[item.printerName]]</div>
<!--TODO(xdai): Add icon for enterprise CUPS printer. -->
<paper-icon-button icon="cr:more-vert" on-tap="onOpenActionMenuTap_"
title="$i18n{moreActions}">
</paper-icon-button>
</div>
<paper-icon-button icon="cr:more-vert" on-tap="onOpenActionMenuTap_"
title="$i18n{moreActions}">
</paper-icon-button>
</div>
</template>
</template
</div>
</template>
<script src="cups_printers_list.js"></script>
</dom-module>

0 comments on commit e9481b6

Please sign in to comment.