/*
 * Wrap long file names in the header of inline file references (e.g. file pages, images of content elements).
 *
 * TYPO3 11 renders the label as <dl class="row row-cols-auto"><dt class="col-1">..</dt><dd class="col text-truncate">..</dd></dl>
 * (UserFileInlineLabelService). ".row-cols-auto > *" overrides the flex of ".col", so the file name never wraps
 * or truncates and pushes the buttons out of the box, and ".col-1" squeezes the label to one letter per line.
 * The markup changes in TYPO3 12, so check whether this is still needed after the upgrade.
 */
.form-irre-header-body {
	min-width: 0;
}

.form-irre-header-body dl.row-cols-auto > dt {
	flex: 0 0 auto;
	width: auto;
	white-space: nowrap;
}

.form-irre-header-body dl.row-cols-auto > dd {
	flex: 1 1 0;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}
