summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/md_extensions/options_dialog.html
blob: 99d583cf70acfbbd999472f48650a79e47bf0e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="item_behavior.html">
<link rel="import" href="navigation_helper.html">

<dom-module id="extensions-options-dialog">
  <template>
    <style>
      #icon {
        height: 32px;
        margin-inline-end: 10px;
        width: 32px;
      }

      #icon-and-name-wrapper {
        align-items: center;
        display: flex;
      }

      ExtensionOptions {
        display: block;
        height: 100%;
        overflow: hidden;
      }

      cr-dialog {
        --scroll-border: 0;
        --cr-dialog-body: {
          height: 100%;
          padding-bottom: 0;
          padding-inline-end: 0;
          padding-inline-start: 0;
          padding-top: 0;
        };

        --cr-dialog-wrapper: {
          height: 100%;
          max-height: initial;
          overflow: hidden;
        };

        --cr-dialog-body-container: {
          border: none;
          height: 100%;
          min-height: initial;
        };
      }
    </style>

    <cr-dialog id="dialog" close-text="$i18n{close}"
        on-close="onClose_" show-close-button>
      <div slot="title">
        <div id="icon-and-name-wrapper">
          <img id="icon" src="[[data_.iconUrl]]"
              alt$="[[appOrExtension(
                  data.type,
                  '$i18nPolymer{appIcon}',
                  '$i18nPolymer{extensionIcon}')]]">
          <span>[[data_.name]]</span>
        </div>
      </div>
      <div slot="body" id="body">
      </div>
    </cr-dialog>
  </template>
  <script src="options_dialog.js"></script>
</dom-module>