flammarion 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Flammarion
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -93,6 +93,12 @@ module Flammarion
93
93
  %|<a class="floating-button" href="#" onClick="$ws.send({id:'#{id}', action:'callback', source:'embedded_button'})">#{label}</a>|
94
94
  end
95
95
 
96
+ def callback_link(label, options = {}, &block)
97
+ id = @front_end.make_id
98
+ @front_end.callbacks[id] = block
99
+ %|<a href="#" onClick="$ws.send({id:'#{id}', action:'callback', source:'link'})">#{label}</a>|
100
+ end
101
+
96
102
  def input(label, options = {}, &block)
97
103
  id = @front_end.make_id
98
104
  send_json({action:'input', label:label, id:id}.merge(options))
@@ -429,8 +429,9 @@ p a:hover {
429
429
  position: relative;
430
430
  }
431
431
  .pane > .pane {
432
+ width: calc(100% + 16px);
433
+ height: initial;
432
434
  margin: -8px;
433
- margin-right: -16px;
434
435
  }
435
436
  #panes {
436
437
  height: calc(98% - 15px);
@@ -65,8 +65,9 @@ p a:hover {
65
65
  position: relative;
66
66
  }
67
67
  .pane > .pane {
68
+ width: calc(100% + 16px);
69
+ height: initial;
68
70
  margin: -8px;
69
- margin-right: -16px;
70
71
  }
71
72
  #panes {
72
73
  height: calc(98% - 15px);
@@ -63,8 +63,9 @@ a
63
63
  position relative
64
64
 
65
65
  .pane > .pane
66
+ width calc(100% + 16px)
67
+ height initial
66
68
  margin -8px
67
- margin-right -16px
68
69
 
69
70
  #panes
70
71
  height calc(98% - 15px)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flammarion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: