fix view_button working

This commit is contained in:
Torsten 2023-01-23 15:01:24 +02:00
parent 1570e34d35
commit 6c23cb5780
2 changed files with 14 additions and 19 deletions

View File

@ -1745,6 +1745,10 @@ select {
min-width: 100%;
}
.max-w-screen-2xl {
max-width: 1536px;
}
.max-w-xl {
max-width: 36rem;
}
@ -1769,10 +1773,6 @@ select {
max-width: 28rem;
}
.max-w-screen-2xl {
max-width: 1536px;
}
.flex-1 {
flex: 1 1 0%;
}
@ -1873,10 +1873,6 @@ select {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-6 {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
@ -1941,6 +1937,10 @@ select {
gap: 0.75rem;
}
.gap-20 {
gap: 5rem;
}
.gap-8 {
gap: 2rem;
}
@ -1949,10 +1949,6 @@ select {
gap: 3rem;
}
.gap-20 {
gap: 5rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
@ -3074,11 +3070,6 @@ select {
}
@media (min-width: 1280px) {
.xl\:mx-auto {
margin-left: auto;
margin-right: auto;
}
.xl\:columns-4 {
-moz-columns: 4;
columns: 4;

View File

@ -33,10 +33,14 @@ module Merged
def view_button(element , extra_classes = "")
return "" unless element.has_option?("button_link")
puts element.header
puts element.option("button_link")
["<button class='button ",
extra_classes,
" >" ,
"<a href='#{element.option("button_link")}'>" ,
"'>" ,
"<a href='" ,
element.option("button_link") ,
"'>" ,
element.option("button_text") ,
"</a>",
" </button>"].join.html_safe