Jump to content
  • Sign in to follow this  

    Как сделать название темы в одну строку


    Silence

    Как сделать название темы в одну строку

    Перейти ACP > customization > theme > ваш скин edid HTML and CSS > forums > front > forums > topicRow найти:

    <a href='{$row->url()}' class='' title='{{if $row->mapped('title')}}{$row->mapped('title')}{{else}}{lang="content_deleted"}{{endif}} {{if $row->canEdit()}}{lang="click_hold_edit"}{{endif}}' itemprop="url"{{if $row->tableHoverUrl and $row->canView()}} data-ipsHover data-ipsHover-target='{$row->url()->setQueryString('preview', 1)}' data-ipsHover-timeout='1.5'{{endif}}{{if $row->canEdit()}} data-role="editableTitle"{{endif}}>

    изменит на:

    <a href='{$row->url()}' class='shortened link' title='{{if $row->mapped('title')}}{$row->mapped('title')}{{else}}{lang="content_deleted"}{{endif}} {{if $row->canEdit()}}{lang="click_hold_edit"}{{endif}}' itemprop="url"{{if $row->tableHoverUrl and $row->canView()}} data-ipsHover data-ipsHover-target='{$row->url()->setQueryString('preview', 1)}' data-ipsHover-timeout='1.5'{{endif}}{{if $row->canEdit()}} data-role="editableTitle"{{endif}}>

    Перейти ACP > customization > theme > ваш скин edid HTML and CSS > core > front > custom > custom.css и  поставит ето код:

    .shortened {
    display: inline-block;
    max-width: 450px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
    }

    Перед:

    1.png

    После:

    2.png

    Sign in to follow this  


    User Feedback

    Recommended Comments

    Мне проще все же делать вот таким способом:

    style="text-align: justify; word-wrap: break-word;" data-ipstruncate="" data-ipstruncate-size="1 lines" data-ipstruncate-type="remove"

     

    Share this comment


    Link to comment
    Share on other sites


    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×