Skip to content

Commit

Permalink
Fix up Firefox QR code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Katharine committed Apr 28, 2014
1 parent a1f73ee commit 0e14fa4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions ide/static/ide/css/ide.css
Expand Up @@ -294,6 +294,12 @@ table.build-results tr.pending .build-state {
color: #3a87ad;
}

#last-compilation-qr-code img {
height: 164px;
width: 164px;
float: right;
margin-top: -10px;
}

/* Old stuff. */

Expand All @@ -314,12 +320,6 @@ table.build-results tr.pending .build-state {
max-width: 350px;
}

#last-compilation-qr-code img {
height: 148px;
width: 148px;
margin-top: -20px;
}

.CodeMirror-dialog input {
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
Expand Down
3 changes: 1 addition & 2 deletions ide/templates/ide/project.html
Expand Up @@ -185,8 +185,7 @@ <h1 class="cloudpebble-logo" style="padding-left: 40px;">
<div class="well">
<h3>Last build</h3>
<div class="hide" id="last-compilation-qr-code">
<p style="text-align: center;"><img src=""><br>
<span class="muted">Scan to download watchface</span></p>
<img src="">
</div>
<div class="build-stats">
<p><label>Started:</label> <span id="last-compilation-started">April 17, 2013, 11:50 a.m.</span></p>
Expand Down
2 changes: 1 addition & 1 deletion qr/views.py
Expand Up @@ -7,7 +7,7 @@
def render(request):
value = request.GET.get('v', '')
size = int(request.GET.get('s', 4))
border = int(request.GET.get('b', 0))
border = int(request.GET.get('b', 2))
qr = qrcode.QRCode(box_size=size, border=border, error_correction=qrcode.constants.ERROR_CORRECT_L)
qr.add_data(value)
img = qr.make_image()
Expand Down

0 comments on commit 0e14fa4

Please sign in to comment.