.code-thread-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
}

.code-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px 0;
}

.ellipsis-wrapper-code {
    margin-right: 5px;
    margin-left: 8px;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color .2s ease;
}

.ellipsis-wrapper-code:hover {
    background-color: rgba(0, 0, 0, .08);
}

.ellipsis-menu-code {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    background: #4b4848;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    border: 1px solid #ccc;
    z-index: 1000;
    padding: 5px 0;
}

.ellipsis-menu-item-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
}

.ellipsis-menu-item-code:hover {
    background: #878383;
    color: aliceblue;
}

.code-link.active .code-title {
    font-weight: 600;
    color: #fff
}

.code-title-edit {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 6px;
    padding: 4px 8px;
}