1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix design & using api

This commit is contained in:
Rokt33r
2015-06-15 11:54:02 +09:00
parent 87c9e3e03b
commit 057f43c424
7 changed files with 34 additions and 27 deletions

View File

@@ -20,8 +20,8 @@
</div>
<div class="result-block row-fluid">
<ul id="result-list" class="result-list left-pane" ng-class="{focused:isFocusing == 2}">
<li ng-click="selectSnippet($index)" ng-repeat="snippet in filteredSnippets" ng-class="{active:$index == selectIndex}"><a href="#">{{snippet.description}}</a></li>
<ul id="result-list" class="result-list left-pane">
<li ng-click="selectSnippet($index)" ng-repeat="snippet in filteredSnippets" ng-class="{active:$index == selectIndex}"><a href="#"> <span ng-bind="snippet.callSign"></span> <small ng-bind="snippet.description"></small></a></li>
</ul>
<div class="right-pane">

View File

@@ -24,7 +24,7 @@
.result-list
list-style:none
padding: 0
border-right: 1px solid $border-color
border-right: 1px solid $baseBorderColor
li
&:nth-child(even)
background-color $baseBackgroundColor

View File

@@ -220,8 +220,8 @@ app.on('ready', function () {
function makeNewMainWindow () {
console.log('new Window!')
mainWindow = new BrowserWindow({
width: 800,
height: 600,
width: 920,
height: 640,
'web-preferences': {
'overlay-scrollbars': true
}

View File

@@ -7,9 +7,7 @@ angular.module('codexen')
var snippetId = $state.params.id
Snippet.show(snippetId, {
'include': ['Tag']
})
Snippet.show(snippetId)
.success(function (data) {
vm.snippet = data
vm.isLoaded = true

View File

@@ -74,9 +74,7 @@ angular.module('codexen')
function loadSnippets() {
if ($auth.isAuthenticated) {
Snippet.findMine({
'include': ['Tag']
})
Snippet.findMine()
.success(function (data) {
vm.snippets = data
})

View File

@@ -88,32 +88,43 @@ $snippet-list-active-bg= $brand-primary
.snippets-detail-state
position absolute
top 0
width 100%
bottom 0
overflow hidden
.detail-header
position absolute
top 0
width 100%
background-color lighten($baseBackgroundColor, 5%)
padding: 5px 10px
height: 50px
border-bottom: solid 1px $baseBorderColor
padding 5px 10px
height 50px
border-bottom solid 1px $baseBorderColor
.detail-header-title
color: $textColorHighlight
color $textColorHighlight
line-height 40px
font-size 1.2em
small
font-size: 0.6em
color: $textColor
color $textColor
line-height: 40px
font-size: 1.2em
.detail-header-control
padding:3px
padding 3px
.detail-body
padding: 5px 10px
position absolute
top 50px
width 100%
bottom 0
padding 5px 10px
overflow-y auto
.ace_editor
min-height: 300px
border: solid 1px $border-color
border-radius: 5px
min-height 300px
border solid 1px $border-color
border-radius 5px
margin-bottom 5px
.tags
word-break: break-all

View File

@@ -1,6 +1,6 @@
<div class="auth-state container-fluid">
<div class="row">
<div class="col-sm-6 col-sm-offset-3 panel panel-default">
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-lg-6 col-lg-offset-3 panel panel-default">
<div class="text-center">