Repository navigation
Image assets are no longer inline by default in 3.x compared to 2.x (also y axis control is broken?) #8258
Adding images are no longer inline and there is no option to set them as such in Image Properties or mentioned in docs.Example: Result in 2.x: Result in 3.x: Resulting probably happens because in newer system images are by default aligned. Y axis controlFor y axis control, it seems images are no longer scaled by height? Even setting through newer "Image Properties" UI (which just sets =x50 for height 50 in markdown) doesn't work. Setting image x axis (its width) works and image is scaled appropriately, but y axis (its height) doesn't work. These both issues I couldn't find in discussions so I'm opening here and is also tested and related to markdown pages. I have not checked other types of pages. |
Replies: 3 comments
|
These look like two CSS effects rather than the height syntax being unsupported. Using 3.3.0 as a
A narrowly scoped workaround to try, if you control custom page styling, is to mark just the icon: [{.inline-icon} Postavke](/dev/commons/sq-local).page-contents img.inline-icon {
display: inline-block;
float: none;
height: 24px;
width: auto;
margin: 0;
vertical-align: middle;
}First test those declarations in browser developer tools. Check that I have inspected the 3.3.0 source, not reproduced your installation. Your exact 3.x version and the |
|
Thank you for your quick answer and sorry for not responding sooner. Scoped workaround works. I did forgot to check applied/computed styles on elements before sending my report, so sorry about that. Also forgot to mention wiki.js version we have installed, it is: 3.3.1 Computed styles for img element is as you mentioned in page stylesheet: which actually overrides: gets overriden by height attribute in img element. For inline-block, it seems to get I should have probably split the report, as i meant height syntax and inline block as separate issues, not ones i used combined. |
Fixed via 5731215. Will land in the next release.