mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
The new runner ran all 260 suites for the first time: 20 failed. Four were real
defects in the app, the rest were guards pinning a spelling or a design that had
since changed - each of them written when it was true, and none of them run
since, because npm stopped the chain at the first failure.
The app fixes:
* models/lib/themeAccents.js: accentOf('constructor') returned Object's
constructor - a FUNCTION - because a plain lookup answers from
Object.prototype. A board colour named after any prototype member would have
written a function into a stylesheet. Only the map's own keys are themes now.
* RTL: the dependency overlay and its connect handle each set a physical
left/right AFTER the logical property, so the physical one won and both were
pinned to the LTR side in an Arabic or Hebrew layout. The skip link, the
avatar's account badge, the stats value column and the theme-category label
were physical too. All logical now (inset-inline-*, text-align: start/end).
The guards, each corrected to what the code actually does now, with the reason:
* addBoardTileHeight, publicationArgumentGuard: a fixed-size slice
(jade + 3000, source + 1400) that a grown comment pushed the subject out of.
Both now take the whole block they are about.
* adminCheckboxStyle: the Grey Icons feature is gone; asserts its REMOVAL.
* boardsVisibilitySettings: the separator count was pinned at 3; the site-theme
picker group made it 4. Asserts the shape - one Save per section, none for
the picker that applies immediately.
* changelogFormat: "# Upcoming WeKan ® release" is a legitimate heading.
* dbConformanceWiring: the log directory honours WEKAN_LOGDIR now.
* domainTablePage: the default page is the app-wide 10, not 25.
* ferretdbOplogGating: the exec runs under the CPU launcher.
* leftMenu: peopleMenu takes the user (multitenancy option D).
* loginEmailPanesMoved: the board-member restriction is two checkboxes in
Organizations and Teams now; asserted there.
* mobileAllBoardsFit: the bell and the avatar are two rules with variants.
* narrowWindowLayout: the hamburger is the last button in the flow, not pinned.
* rulesApiTriggerNormalize: #6491 made a missing matching field mean "any
value", so the #2674 "can never match" case now matches - and removeMember
iterates assignees, not members.
* securityLog: the new-problems selector moved to models/lib/eventLogProblems.
* tablePage: the Cards report renders the page the SERVER named.
* tenantWiring: the site colour is read in two places; the autorun is the one.
* themeAccents: see above - the guard was right, the code was not.
* translationPane: the "no hand-written table" regex matched the +tablePage
include it also requires.
* uiDensity: admin table cells wrap in one td+th rule now.
* rtl: the dir attribute comes from a helper, `!important` is not part of a
value, and the scanner read CSS COMMENTS as declarations - the comment
explaining why `left: 50%` needs no RTL variant was reported as a violation.
Thanks to xet7 !
218 lines
4.9 KiB
CSS
218 lines
4.9 KiB
CSS
.member {
|
|
border-radius: 3px;
|
|
display: block;
|
|
position: relative;
|
|
float: inline-start;
|
|
height: 24px;
|
|
width: 24px;
|
|
margin: 3px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
z-index: 1;
|
|
text-decoration: none;
|
|
border-radius: 50%;
|
|
}
|
|
.member .avatar {
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
}
|
|
.member .avatar.avatar-initials {
|
|
height: 70%;
|
|
width: 70%;
|
|
padding: 15%;
|
|
background-color: #dbdbdb;
|
|
color: #444;
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.member .avatar.avatar-image {
|
|
object-fit: cover;
|
|
object-position: center;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
.member .member-presence-status {
|
|
background-color: #b3b3b3;
|
|
border: 1px solid #fff;
|
|
border-radius: 50%;
|
|
height: 7px;
|
|
width: 7px;
|
|
position: absolute;
|
|
inset-inline-end: -1px;
|
|
bottom: -1px;
|
|
border: 1px solid #fff;
|
|
z-index: 15;
|
|
}
|
|
.member .member-presence-status.active {
|
|
background: #64c464;
|
|
border-color: #daf1da;
|
|
}
|
|
.member .member-presence-status.idle {
|
|
background: #e4e467;
|
|
border-color: #f7f7d4;
|
|
}
|
|
.member .member-presence-status.disconnected {
|
|
background: #bdbdbd;
|
|
border-color: #ededed;
|
|
}
|
|
.member .member-presence-status.pending {
|
|
background: #e44242;
|
|
border-color: #f1dada;
|
|
}
|
|
.member .edit-avatar {
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 50%;
|
|
background: #000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
}
|
|
.member .edit-avatar:hover {
|
|
opacity: 0.6;
|
|
}
|
|
.member .edit-avatar i.fa-pencil {
|
|
color: #fff;
|
|
}
|
|
.member.add-member {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 0 0 2px #bfbfbf inset;
|
|
}
|
|
.member.add-member:hover,
|
|
.member.add-member.is-active {
|
|
box-shadow: 0 0 0 2px #666 inset;
|
|
}
|
|
/* Change profile image popup (changeAvatarPopup / adminChangeAvatarPopup).
|
|
One row per avatar: thumbnail, file name, a check when it is the one in use,
|
|
and a delete button. The delete button is a SIBLING of the select link (see
|
|
userAvatar.jade), so it needs its own row-level flex layout here. */
|
|
.avatar-list .avatar-list-item {
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
.avatar-list .avatar-list-select {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.avatar-list .avatar-list-select > .member {
|
|
align-self: center;
|
|
margin: 0;
|
|
}
|
|
.avatar-list .avatar-list-info {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
line-height: 18px;
|
|
padding: 4px 0;
|
|
}
|
|
.avatar-list .avatar-list-name {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.avatar-list .avatar-list-check {
|
|
flex: 0 0 auto;
|
|
color: #3cb500;
|
|
}
|
|
/* Marks the avatar in use; :not(:hover) so the popup's own hover colour still wins. */
|
|
.avatar-list .avatar-list-item.selected .avatar-list-select:not(:hover) {
|
|
background-color: #e2e6e9;
|
|
}
|
|
.avatar-list .avatar-list-delete {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
color: #8c8c8c !important;
|
|
}
|
|
/* Outweighs .pop-over-list li > a:not(.disabled):hover, which would otherwise
|
|
paint the delete button with the generic blue row-hover colour. */
|
|
.avatar-list.pop-over-list li > a.avatar-list-delete:hover {
|
|
color: #fff !important;
|
|
background-color: #b04632;
|
|
}
|
|
.avatar-upload-hints {
|
|
color: #8c8c8c;
|
|
font-size: 12px;
|
|
line-height: 16px;
|
|
margin: 6px 0;
|
|
}
|
|
.atMention {
|
|
background: #dbdbdb;
|
|
border-radius: 3px;
|
|
padding: 1px 4px;
|
|
margin: -1px 0;
|
|
display: inline-block;
|
|
}
|
|
.atMention.me {
|
|
background: #cfdfe8;
|
|
}
|
|
.mini-profile-info {
|
|
margin-top: 10px;
|
|
}
|
|
.mini-profile-info .info {
|
|
padding-top: 5px;
|
|
}
|
|
.mini-profile-info .info h3,
|
|
.mini-profile-info .info p {
|
|
margin-bottom: 0;
|
|
padding-inline-start: 0;
|
|
}
|
|
.mini-profile-info .info p {
|
|
padding-top: 0;
|
|
}
|
|
.mini-profile-info .member {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-inline-end: 10px;
|
|
}
|
|
|
|
/* Account-status distinction on the avatar itself (see userAvatar.js
|
|
memberAccountClass / isImportedMember / isInactiveMember):
|
|
- imported-member: an un-reconciled board-import placeholder that is not yet mapped
|
|
to a real account — dashed ring + amber "?" corner badge.
|
|
- inactive-member: deactivated on this board (e.g. a person not in LDAP after
|
|
reconciliation) — greyscale + dimmed, grey corner badge.
|
|
A placeholder is usually both; a real, active account gets neither. */
|
|
.member.imported-member .avatar {
|
|
border: 2px dashed #7f8c9a;
|
|
box-sizing: border-box;
|
|
opacity: 0.9;
|
|
}
|
|
.member.inactive-member .avatar {
|
|
filter: grayscale(1);
|
|
opacity: 0.55;
|
|
}
|
|
.member .member-account-badge {
|
|
position: absolute;
|
|
bottom: -2px;
|
|
inset-inline-end: -2px;
|
|
min-width: 14px;
|
|
height: 14px;
|
|
line-height: 13px;
|
|
padding: 0 1px;
|
|
border-radius: 7px;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
color: #fff;
|
|
box-shadow: 0 0 0 1.5px #fff;
|
|
pointer-events: none;
|
|
}
|
|
.member .member-account-badge.imported {
|
|
background: #f39c12;
|
|
}
|
|
.member .member-account-badge.inactive {
|
|
background: #95a5a6;
|
|
}
|