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

Don't wrap thread header above md screens #64

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

## Current (in progress)

- Nothing yet
- Fix thread header wrapped when title is too long [#64](https://github.com/etalab/udata-front/pull/64)

## 1.2.1 (2022-01-11)

Expand Down
4 changes: 2 additions & 2 deletions theme/js/components/discussions/thread.vue
@@ -1,10 +1,10 @@
<template>
<div class="bg-contrast-grey fr-mt-2w" :id="discussionUrl(id)">
<header class="fr-grid-row fr-grid-row--middle justify-between fr-py-2w fr-px-3w">
<header class="fr-grid-row fr-grid-row--middle justify-between fr-py-2w fr-px-3w no-wrap wrap-md">
<div class="fr-col-auto text-default-warning fr-text--bold fr-pr-2w" v-if="closed">
<span>{{ $t("Discussion closed") }}</span>
</div>
<h3 class="fr-p-2w fr-p-md-0 fr-h6 fr-mb-0">{{ title }}</h3>
<h3 class="fr-mx-3v fr-mx-md-0 fr-h6 fr-mb-0">{{ title }}</h3>
<div class="text-align-right">
<a
:id="id + '-copy'"
Expand Down
10 changes: 10 additions & 0 deletions theme/less/layout/grid.less
Expand Up @@ -247,6 +247,16 @@ each(@breakpoints, .(@bk, @_k, @_i) {
flex-wrap: nowrap;
}

.wrap {
flex-wrap: wrap;
}

@media @query-md {
.wrap-md {
.wrap;
}
}

.flex-direction-column {
flex-direction: column;
}
Expand Down