For given ϵ>0 and b∈Rm, we say that a real m×n matrix A is ϵ-badly approximable for the target b if q∈Zn,∥q∥→∞liminf∥q∥n⟨Aq−b⟩m≥ϵ, where ⟨⋅⟩ denotes the distance from the nearest integral point. In this article, we obtain upper bounds for the Hausdorff dimensions of the set of ϵ-badly approximable matrices for fixed target b and the set of ϵ-badly approximable targets for fixed matrix A. Moreover, we give an equivalent Diophantine condition of A for which the set of ϵ-badly approximable targets for fixed A has full Hausdorff dimension for some ϵ>0. The upper bounds are established by effectivizing entropy rigidity in homogeneous dynamics, which is of independent interest. For the A-fixed case, our method also works for the weighted setting where the supremum norms are replaced by certain weighted quasinorms.