Fix display of recipe titles so whole title shows
This commit is contained in:
parent
11597a9b63
commit
f5ac6cbf26
3 changed files with 15 additions and 5 deletions
|
@ -23,9 +23,9 @@ h3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
.recipe-add-grubs-btn {
|
.recipe-add-grubs-btn {
|
||||||
float: right;
|
position: absolute;
|
||||||
clear: both;
|
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
|
right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
|
@ -133,16 +133,25 @@ tr:hover .grub-close {
|
||||||
.recipe-header {
|
.recipe-header {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
padding-right: 72px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.recipe-header.edit {
|
||||||
|
padding-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-header.new {
|
||||||
|
padding-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.recipe-header-input {
|
.recipe-header-input {
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
transition: none;
|
transition: none;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
display: inline;
|
display: inline;
|
||||||
width: inherit;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recipe-header-input[readonly] {
|
.recipe-header-input[readonly] {
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
(dom/click-on-elem? % (om/get-node owner :save-btn))))
|
(dom/click-on-elem? % (om/get-node owner :save-btn))))
|
||||||
(transition-state owner :click))}
|
(transition-state owner :click))}
|
||||||
[:div.panel-heading.recipe-header
|
[:div.panel-heading.recipe-header
|
||||||
|
{:class (when (= edit-state :editing) "edit")}
|
||||||
[:input.form-control.recipe-header-input
|
[:input.form-control.recipe-header-input
|
||||||
{:type "text"
|
{:type "text"
|
||||||
:readOnly (if (= edit-state :editing) "" "readonly")
|
:readOnly (if (= edit-state :editing) "" "readonly")
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
[:div.panel.panel-default.recipe-panel
|
[:div.panel.panel-default.recipe-panel
|
||||||
{:on-click #(when (not (dom/click-on-elem? % (om/get-node owner :save-btn)))
|
{:on-click #(when (not (dom/click-on-elem? % (om/get-node owner :save-btn)))
|
||||||
(transition-state owner :click))}
|
(transition-state owner :click))}
|
||||||
[:div.panel-heading.recipe-header
|
[:div.panel-heading.recipe-header.new
|
||||||
[:input.form-control.recipe-header-input
|
[:input.form-control.recipe-header-input
|
||||||
{:id "new-recipe-name"
|
{:id "new-recipe-name"
|
||||||
:type "text"
|
:type "text"
|
||||||
|
|
Loading…
Add table
Reference in a new issue