Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carousel-umbruch deaktivieren #464

Open
andreaschu opened this issue Dec 14, 2021 · 1 comment
Open

carousel-umbruch deaktivieren #464

andreaschu opened this issue Dec 14, 2021 · 1 comment

Comments

@andreaschu
Copy link
Contributor

@vdick kannst Du mir sagen, wie man offenen Matrizen beibringt nicht in ein Carousel umzubrechen?
Vor allem sollen offene Matrizen mit nur einer Spalte nicht in die Carousel-Ansicht umbrechen.

@vdick
Copy link

vdick commented Dec 14, 2021

@andreaschu @SilinaSchirmer @christian-fr
Um das Umwandeln einer OpenMatrix in ein Carousel zu verhindern, sind folgende Schritte notwendig:
1. ins Additional.js folgendes Snippet hineinkopieren und die PageUID anpassen:

$(".custom-A46").each(function() {
		var containerSelector = $(".form-orientation", this);
		var indicatorsSelector = $(".carousel-indicators", containerSelector);
		var rowSelector = $(".row", containerSelector);
		var labelSelector = $(".custom-control-description.hidden-md-up", rowSelector);
		var textSubSelector = $(".text-sub", rowSelector);
		$(rowSelector).removeClass("active");
		$(containerSelector).removeClass("form-responsive").addClass("form-horizontal").addClass("form-horizontal-custom");
		$(indicatorsSelector).removeClass("hidden-md-up").addClass("hidden-sm-up").addClass("hidden-sm-down");
		$(labelSelector).removeClass("hidden-md-up").addClass("hidden-sm-up");
		$(textSubSelector).removeAttr("style");
	});

2. Ins Additional.css für @media(max-width: 414px) hineinkopieren und die PageUID anpassen:

 	.custom-PageUID .form-horizontal-custom .carousel .row .hidden-sm-down 
	{
		display: inherit !important;
	}
	.custom-PageUID .form-horizontal-custom .carousel .row .inputonly 
	{
		visibility: inherit !important;
		opacity: inherit !important;
		font-weight: inherit !important;
		text-align: inherit !important;
		position: inherit !important;
		top: inherit !important;
		left: inherit !important;
	}
	.custom-PageUID .form-horizontal .form-2-col [class^="col-"]:nth-child(1) 
	{
	    min-width: 50% !important;
	}
	.custom-PageUID .form-horizontal 
	{
	    overflow: hidden;
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants