diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-26 09:37:39 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-26 09:37:39 +0200 |
commit | a21a402d9aaaf4c2c7720da0f76b7311d3d64830 (patch) | |
tree | 932ec831065f9ce80b7d7e9182bca438e0c6d81a /template.go | |
parent | Improved wrapping behavior (diff) | |
download | gopherproxy-a21a402d9aaaf4c2c7720da0f76b7311d3d64830.tar.gz gopherproxy-a21a402d9aaaf4c2c7720da0f76b7311d3d64830.tar.bz2 gopherproxy-a21a402d9aaaf4c2c7720da0f76b7311d3d64830.zip |
Make word wrap optional, better mobile design
Diffstat (limited to 'template.go')
-rw-r--r-- | template.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/template.go b/template.go index 93777b2..3d95838 100644 --- a/template.go +++ b/template.go | |||
@@ -45,8 +45,10 @@ var tpltext = `<!doctype html> | |||
45 | <span class="location__uripart">{{ $uriLast -}}</span> | 45 | <span class="location__uripart">{{ $uriLast -}}</span> |
46 | </div> | 46 | </div> |
47 | <div class="actions"> | 47 | <div class="actions"> |
48 | {{- if not .Lines }}<a href="/{{ .URI | replace "^(.*?)/0" "$1/9" }}">View raw</a> | {{ end -}} | 48 | {{- if not .Lines -}} |
49 | <button class="settings-btn">Settings</button> | 49 | <div class="action"><a href="/{{ .URI | replace "^(.*?)/0" "$1/9" }}">View raw</a></div> |
50 | {{- end -}} | ||
51 | <div class="action"><button class="settings-btn">Settings</button></div> | ||
50 | </div> | 52 | </div> |
51 | </header> | 53 | </header> |
52 | <main class="wrap"> | 54 | <main class="wrap"> |
@@ -75,6 +77,10 @@ var tpltext = `<!doctype html> | |||
75 | <h1 class="modal__title">Settings</h1> | 77 | <h1 class="modal__title">Settings</h1> |
76 | <button class="modal__close-btn">Close</button> | 78 | <button class="modal__close-btn">Close</button> |
77 | </header> | 79 | </header> |
80 | <div class="setting setting--word-wrap"> | ||
81 | <strong class="setting__label">Wrap wide content</strong> | ||
82 | <button class="setting__value">[N/A]</button> | ||
83 | </div> | ||
78 | <div class="setting setting--image-previews"> | 84 | <div class="setting setting--image-previews"> |
79 | <strong class="setting__label">Image thumbnails</strong> | 85 | <strong class="setting__label">Image thumbnails</strong> |
80 | <button class="setting__value">[N/A]</button> | 86 | <button class="setting__value">[N/A]</button> |